localstack / localstack-java-utils

☕ Java utilities and JUnit integration for LocalStack
Apache License 2.0
75 stars 43 forks source link

Filter synthetic bridge methods during method detection for java lambda full handler syntax #79

Closed dfangl closed 3 years ago

dfangl commented 3 years ago

This PR filters the methods matched by the handler method specification, so matching bridge methods do not get invoked / counted. This is necessary for invoking methods which are also part of the implementation of a generic interface, like implementing RequestHandler, and then specifying the method handleRequest in the handler specification.

Should (finally) fix https://github.com/localstack/localstack/issues/4512

Test for this behavior will be published in a complementing LocalStack PR.