Given the following annotated method:
@GET
@Path("/mystuff/{id}")
public Response doMyStuff(@PathParam("id") int id) {
...
}
.. a call to /mystuff/1 will not match successfully. Changing the int id to Integer id causes the method to match, but is very unobvious. I assume that is also the case with the other Parameter types (Header etc..)