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.