RFR: 8268788: Annotations with lambda expressions can still cause AnnotationFormatError [v3]

Sergei Ustimenko github.com+5709644+fdesu at openjdk.java.net
Mon Aug 16 16:09:29 UTC 2021


On Mon, 16 Aug 2021 13:56:44 GMT, Sergei Ustimenko <github.com+5709644+fdesu at openjdk.org> 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.
>
> Sergei Ustimenko has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains one commit:
> 
>   8268788: Annotations with lambda expressions can still cause AnnotationFormatError

Hi, that would be great if anyone would have time to take a quick look on this pull request. I hope this change is still relevant and I am happy to have any feedback from you. Thanks!

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

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


More information about the core-libs-dev mailing list