RFR: 8169629: Annotations with lambda expressions cause AnnotationFormatErrorr
Joe Darcy
darcy at openjdk.java.net
Wed Mar 31 21:38:35 UTC 2021
The stricter checks added by
8035781: Improve equality for annotations
in creating the proxy objects used to implement annotations has an unintended by-catch of rejecting annotation's whose type has, say, a field initialized with a lambda expression. While uncommon, it is legal code to have a field in an annotation type.
The updated checks skip over the sort of synthetic method used for the initialization.
Some different compilation tactics were used before and after nest mates, so the test includes compilation and testing under both situations.
-------------
Commit messages:
- 8169629: Annotations with lambda expressions cause AnnotationFormatErro
Changes: https://git.openjdk.java.net/jdk/pull/3294/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3294&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8169629
Stats: 29 lines in 2 files changed: 25 ins; 0 del; 4 mod
Patch: https://git.openjdk.java.net/jdk/pull/3294.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/3294/head:pull/3294
PR: https://git.openjdk.java.net/jdk/pull/3294
More information about the core-libs-dev
mailing list