Withdrawn: 8268788: Annotations with lambda expressions can still cause AnnotationFormatError

duke duke at openjdk.java.net
Fri Oct 22 22:21:14 UTC 2021


On Wed, 30 Jun 2021 20:08:27 GMT, Sergei Ustimenko <duke at openjdk.java.net> wrote:

> Change #3294 helps to avoid `AnnotaionFormatException` in `sun.reflect.annotation.AnnotationInvocationHandler.validateAnnotationMethods`. While it fixes the case with e.g. `Runnable`  that generates the synthetic method without parameters, validation still fails on synthetic methods that have parameters e.g. `Function`, `BiFunction`, etc.
> 
> This change removes the restriction on parameters count to be zero i.e. lambdas with parameters
> would be skipped from validation.

This pull request has been closed without being integrated.

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

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


More information about the core-libs-dev mailing list