[JSR308] Annotations on type parameters.

Niko Matsakis niko at alum.mit.edu
Wed Oct 15 09:41:23 EDT 2008

Please ignore this mail.  It was sent by accident.  While I do think  
such annotations would be useful, I have not yet finished the patch,  
and I had intended to make a better case for their utility before  
sending the mail.

Niko Matsakis

On Oct 15, 2008, at 3:38 PM, Niko Matsakis wrote:

> Hello,
> I noticed that in the current version of javac, it is not legal to
> place annotations on generic type parameters.  For example:
> 	public class List<@X E> {}
> I, personally, would find this useful.  It seems to me very plausible
> that many alternate type system might want to declare annotations on
> generic type parameters, just as they do on other type declarations
> like classes or interfaces.
> To that end, I have attached a patch that allows such annotations.
> They can be accessed using the standard Element interface.
> Niko
> _______________________________________________
> JSR308 mailing list
> JSR308 at lists.csail.mit.edu
> https://lists.csail.mit.edu/mailman/listinfo/jsr308

More information about the JSR308 mailing list