Hi,
I recall a while ago a discussion on a limitation with Jersey and type
variables that are arguments of parameterized types. I have just
committed a fix so it is possible to support stuff like the following:
public static class ParameterizedTypeResource<T, V> {
@QueryParam("v") Collection<V> fieldV;
List<List<V>> methodV;
@QueryParam("v")
public void set(List<List<V>> methodV) {
this.methodV = methodV;
}
@GET
public String get(@QueryParam("v") Map<String, List<V>> getV) {
return "";
}
@POST
public Collection<T> post(Collection<T> t) {
return t;
}
@Path("sub")
@POST
public Collection<T> postSub(Collection<T> t) {
return t;
}
}
public static class ConcreteParameterizedTypeResource extends
ParameterizedTypeResource<String, String> {
}
Type variable arrays are also supported.
Paul.