[JSR308] Use of @Target meta-annotation

Neal Gafter gafter at google.com
Sat May 19 11:01:07 EDT 2007

On May 19, 2007 6:41 AM, Michael Ernst <mernst at csail.mit.edu> wrote:
> > Your proposal to make the meaning of an annotation change based on
> > its meta-annotation violates the principle that an annotation should not
> > affect the meaning of the program elements.
> Let me correct two misinterpretations in this statement of the
> disadvantages of the approach that uses @Target meta-annotations.
> (I don't argue it has no disadvantages, just that these are overstated.)
> First, the proposal does not change the meaning of the annotation.  It
> only
> determines the target, based on the @Target meta-annotation.

The target of an annotation is part of its meaning.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.csail.mit.edu/pipermail/jsr308/attachments/20070519/c4269d8b/attachment.html

More information about the JSR308 mailing list