Issue Details (XML | Word | Printable)

Key: JERSEY-1192
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Marek Potociar
Reporter: jan.supol
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.

Client#invocation(Link, (Entity)null) does not throw NullPointerException

Created: 01/Jun/12 11:45 AM   Updated: 16/Aug/12 02:33 PM   Resolved: 16/Aug/12 02:33 PM
Component/s: core
Affects Version/s: 2.0-m04
Fix Version/s: 2.0-m07, 2.0

Time Tracking:
Original Estimate: 3 hours
Original Estimate - 3 hours
Remaining Estimate: 0 minutes
Remaining Estimate - 0 minutes
Time Spent: 2 hours
Time Spent - 2 hours Time Not Required

Issue Links:

Participants: jan.supol and Marek Potociar

 Description  « Hide

The javadoc of Client#invocation(Link, Entity) says: Link, Entity ) throws NullPointerException in case argument is null.

but calling:

Client client = ClientFactory.newClient();
URI uri = UriBuilder.fromPath("http://localhost:8080/").build();
Link link = Link.fromUri(uri).method("POST").build();
client.invocation(link, null);


java.lang.IllegalArgumentException: Entity type incompatible with link produces parameter

There are no comments yet on this issue.