Accessing type annotations via annotation processor
Gunnar Morling
gunnar at hibernate.org
Mon Aug 11 10:22:11 UTC 2014
Hi,
I'm looking for a way to obtain annotations given on type uses using a JSR
269 annotation processor.
E.g. I'd like to obtain the @NotNull annotation from the following field
declaration:
...
private List<@NotNull String> values;
Based on a post of Joe [1] I assumed this to be possible, but a discussion
on this list now makes me believe this cannot be done as of Java 8. Is this
true? If so, will this be the case in SE 9?
On a tangent, Joe referenced a diff of the JavaDocs of two versions of the
JSR 269 API, containing nicely colored mark-up highlighting the changes.
What's the tool used for creating this diff?
Thanks,
--Gunnar
[1] https://blogs.oracle.com/darcy/entry/jsr_269_mr_for_java
[2] http://mail.openjdk.java.net/pipermail/compiler-dev/2014-May/008756.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20140811/9431e511/attachment.html>
More information about the compiler-dev
mailing list