RFR: 8169629: Annotations with lambda expressions cause AnnotationFormatError [v2]
Joe Darcy
darcy at openjdk.java.net
Thu Apr 1 16:47:54 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.
Joe Darcy has updated the pull request incrementally with one additional commit since the last revision:
Respond to review feedback.
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/3294/files
- new: https://git.openjdk.java.net/jdk/pull/3294/files/818df21d..db79e3c8
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3294&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3294&range=00-01
Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 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