users@jsr311.java.net

Re: MessageBodyWriter and annotations

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Mon, 30 Jun 2008 11:41:06 -0400

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 ?

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.