[jdk11u-dev] RFR: 8236210: javac generates wrong annotation for fields generated from record components [v2]
Liam Miller-Cushon
cushon at openjdk.java.net
Thu Jan 20 23:07:36 UTC 2022
> This is a backport of [JDK-8236210: javac generates wrong annotation for fields generated from record components](https://bugs.openjdk.java.net/browse/JDK-8236210)
>
> This is a partial backport.
>
> * The focus of JDK-8236210 was a bug with records and most of the diff was to logic that was added to deal with records. However the patch also included a fix to the logic for checking annotation applicability in `Check.annotationApplicable` that fixes a bug with annotations on `var`, so I backported the part that is relevant to Java 11.
> * I added a test for the issue specific to `var`, since the original test is for records and cannot be backported.
>
> Testing: x86 build, affected tests, tier1
Liam Miller-Cushon has updated the pull request incrementally with one additional commit since the last revision:
Fix a compilation error with JDK 10
-------------
Changes:
- all: https://git.openjdk.java.net/jdk11u-dev/pull/771/files
- new: https://git.openjdk.java.net/jdk11u-dev/pull/771/files/f23018d6..9523a15b
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=771&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=771&range=00-01
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.java.net/jdk11u-dev/pull/771.diff
Fetch: git fetch https://git.openjdk.java.net/jdk11u-dev pull/771/head:pull/771
PR: https://git.openjdk.java.net/jdk11u-dev/pull/771
More information about the jdk-updates-dev
mailing list