users@jersey.java.net

Re: [Jersey] Unmarshaling JAXB object from JSON

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 01 Apr 2009 14:28:05 +0200

On Apr 1, 2009, at 2:21 PM, Marc Hadley wrote:
>
>> Do not pass null for the annotation array use an empty array:
>>
>> new Annotation[0]
>>
> We need to fix this in the JAX-RS javadoc, its not clear whether
> null is allowed or not.
>

Agreed. The Java APIs to access annotations, e.g.
Class.getAnnotations(), return zero length arrays if there are no
annotations.

Paul.