RFR: 8193037 package-info annotations are not reported when annotation processing is enabled

Liam Miller-Cushon cushon at google.com
Wed Dec 6 01:49:22 UTC 2017


Hello,

Please review the following fix for JDK-8193037.

javac should only reset package-info symbols between annotation processing
rounds if
the package-info is being compiled from source. Previously package-infos
loaded from
the classpath were reset and not reinitialized, leading to package
annotations being
unavailable during later annotation processing rounds.

I included an additional test case to ensure that package-infos are still
reset when
necessary. Related discussion:
http://mail.openjdk.java.net/pipermail/compiler-dev/2017-December/011398.html

bug: https://bugs.openjdk.java.net/browse/JDK-8193037
webrev: http://cr.openjdk.java.net/~cushon/8193037/webrev.00/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20171205/7c196f2c/attachment.html>


More information about the compiler-dev mailing list