-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
It is possible to have a missing @PathParam:
public static class PathBeanParamEntity { @PathParam("p") String p; } @Path("test") public static class Resource { @BeanParam PathBeanParamEntity pbpe; @Path("get") @GET String method() {} }
Currently, an InternalServerErrorException is thrown if the request URI doesn't have a matching "p" path parameter, but the javadoc for @DefaultValue says
If this annotation is not used and the corresponding meta-data is not present in the request, the value will be an empty collection for List, Set or SortedSet, null for other object types, and the Java-defined default for primitive types.