dev@jsr311.java.net

Re: JSR311: _at_Target of FIELD for _at_*Param annotations

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Mon, 10 Mar 2008 11:02:05 -0400

On Mar 10, 2008, at 10:51 AM, Stephan Koops wrote:
>>>> What I want to avoid is using the annotations defined in JSR 311
>>>> in places not covered by the spec because that could be quite
>>>> confusing for developers. I'm less worried about a meta-
>>>> annotation since those are generally hidden from developers.
> I think it will confusing developers, if they can't use @*Param on
> instance variables, especially @HeaderParam and @CookieParam, and
> also @PathParam, if the matched variable value wath matched in @Path
> of a root resource class. As a developer I would wonder, why this
> isn't defined. That's what we are talking about.
>
I think it would be much more confusing if the same annotations worked
in some places in some implementations and not in others.

Marc.

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