Re: JSR311: _at_*Param and List<?>

From: Stephan Koops <>
Date: Tue, 18 Mar 2008 12:57:42 +0100

I think this is not useful for @PathParam, but otherwise good


Marc Hadley schrieb:
> I propose to change the parameter types that can be annotated with
> @*Param to include List. E.g. you could do:
> @GET
> Foo getFoo(@QueryParam("bar") List<String> bars) {...}
> The list member type would be the same as currently supported, i.e.
> any type that has a String cnstructor or valueOf(String) method.
> Using the @DefaultValue annotation with a List<?> type will ensure the
> parameter always has at least one member whose value is specified by
> the @DefaultValue annotation.
> Any objections ?
> Marc