On Wed, 31 Mar 2021 21:32:35 GMT, Joe Darcy <da...@openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 328e9514
Author:    Joe Darcy <da...@openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/328e9514
Stats:     27 lines in 2 files changed: 23 ins; 0 del; 4 mod

8169629: Annotations with lambda expressions cause AnnotationFormatError

Reviewed-by: jfranck

-------------

PR: https://git.openjdk.java.net/jdk/pull/3294

Reply via email to