Clarification on type use
Eric McCorkle
eric.mccorkle at oracle.com
Thu Apr 3 16:19:04 UTC 2014
The following is exerpted from the test
langtools/test/tools/javac/annotations/typeAnnotations/TypeUseTarget.java:
@A
class TypeUseTarget<K extends @A Object> {
...
}
@Target(ElementType.TYPE_USE)
@interface A { }
The first use of A seems to be on the class TypeUseTarget. The result
with the current implementation is that javac produces a
RuntimeInvisibleAnnotations attribute for the class TypeUseTarget.
But is this valid? I can't seem to find anything in the type
annotations spec that suggests that an annotation with a TYPE_USE target
can wind up being a regular annotation on a class (or interface).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eric_mccorkle.vcf
Type: text/x-vcard
Size: 303 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/type-annotations-dev/attachments/20140403/d3d3b09f/eric_mccorkle-0001.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <http://mail.openjdk.java.net/pipermail/type-annotations-dev/attachments/20140403/d3d3b09f/signature-0001.asc>
More information about the type-annotations-dev
mailing list