[JSR308] Annotations on String and primitive literals?

Artemus Harper subanark at gmail.com
Thu May 8 13:44:01 EDT 2008


Is there any reason that annotations are permitted on class literals, but
not on String, or primitive literals.
E.g.
I might want to have:
URL resource = MyClass.class.getResource(@Resource "someResource");

Where the Resource checker would ensure that there is a resource called
"someResource" relative to MyClass.

-- 
Artemus Harper
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.csail.mit.edu/pipermail/jsr308/attachments/20080508/eca683e4/attachment.htm 


More information about the JSR308 mailing list