Re: JSR311: Issue 44: Optional values for _at_*Param

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Wed, 25 Jun 2008 11:38:53 -0400

So far I've seen one positive response to this suggestion. Personally
I'm fairly ambivalent, on the one hand it seems like a nice shortcut
where it will work, on the other hand the status quo is simpler to

Any other opinions either for or against ?


On Jun 23, 2008, at 2:55 PM, Stephan Koops wrote:

> Hi,
>> Should we make the value of @*Param annotations optional when used
>> with fields and bean properties. E.g. should:
>> @QueryParam String foo;
>> be equivalent to:
>> @QueryParam("foo") String foo;
> I think it is a good idea.
>> Unfortunately this won't work on method parameters since their
>> names are not preserved in class files.
> IMO a runtime environment should give a strong warning or fully
> reject the class.
> best regards
> Stephan
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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