RFR: JDK-8239447: compiler error for annotations applied to record components with target METHOD
Vicente Romero
vicente.romero at oracle.com
Thu Mar 12 17:57:08 UTC 2020
ping
On 3/7/20 12:34 AM, Vicente Romero wrote:
> Please review fix for [1] at [2]. When there are APs involved, every
> time a new round of annotation processing will start, a visitor, see
> [3], sets the attribute field of annotation ASTs to null. This visitor
> was not visiting some annotations stored at the record component. This
> provoked that data from previous rounds could be accessible to later
> rounds provoking later annotation validation code to fail. Just
> visiting the annotations at the record component as it is done for the
> rest of the annotations has fixed the issue.
>
> Thanks,
> Vicente
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8239447
> [2] http://cr.openjdk.java.net/~vromero/8239447/webrev.00/
> [3]
> http://hg.openjdk.java.net/jdk/jdk/file/7af6364e1792/src/jdk.compiler/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java#l1591
More information about the compiler-dev
mailing list