users@jersey.java.net

Re: [Jersey] Default value for Set or List QueryParam when no values are given

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 08 May 2009 17:54:40 +0200

On May 7, 2009, at 7:51 PM, Stephen Duncan Jr wrote:

> The documentation (for instance, the Javadocs on DefaultValue) say
> that I should get an empty collection if I don't specify the a
> @DefaultValue annotation, and if no params are provided: "If this
> annotation is not used and the corresponding metadata 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."
>
> I am getting null instead. This is with jersey-1.0.3.
>

I verified this is a problem, well found. Can you log an issue?

Thanks,
Paul.