dev@jsr311.java.net

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

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Fri, 07 Mar 2008 22:57:31 +0100

Hello Marc,
> public class SomeClass {
>
> @PathParam("id") int id;
>
> ...
> }
>
> will cause problems if SomeClass is a singleton because you can't
> (AFAIK) proxy an int.
why could you not inject the int directly? Why do we need a proxy?
I changed the annotations @HeaderParam and @PathParam local for me, so
that they are allowed on fields. It works fine with String and int.

Stephan