RFR: JDK-8014016: javac is too late detecting invalid annotation usage

Jan Lahoda jan.lahoda at oracle.com
Sun Oct 6 00:07:30 PDT 2013


Hello,

Bug:
https://bugs.openjdk.java.net/browse/JDK-8014016

The bug, as I understand it, says that for annotations appearing in 
declarations/headers, it should be verified that the annotations are not 
misplaced before ending the enter phase, and before getting to Attr.

First version of a patch that strives to validate in-declaration 
annotations during the enter phase is available here:
http://cr.openjdk.java.net/~jlahoda/8014016/webrev.00/

As it also contains non-trivial changes related to type annotations, 
CCing to the type annotations list as well.

Any comments or questions are welcome,
     Jan


More information about the type-annotations-dev mailing list