[JSR308] Use of @Target meta-annotation
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
> 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...
More information about the JSR308