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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Liam Miller-Cushon
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: