users@jsr311.java.net

Re: MessageBodyWriter and annotations

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 30 Jun 2008 17:54:33 +0200

Marc Hadley wrote:
> On Jun 30, 2008, at 11:31 AM, Stephan Koops wrote:
>>>> I think ever the ones of the resource method -> @AnnotationA.
>>>> Perhaps it is not clear enough.
>>> Annotations from the type returned, not the method returning the type.
>> Why should the runtime inject the annotations of the class? The class
>> is available, so the runtime is not required to inject them. If this
>> is meant, we could IMO remove the Annotation[] parameter.
>>
> We could remove that parameter. I guess its mainly there for symmetry
> with MessageBodyReader - is this a big deal ?
>

...and when annotations on return types may be supported by the JRE, so
we avoid having to change the interface later on.

IIRC those were the two reasons why that parameter is present and my
understanding was that currently it should always be null.

Paul.

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109