Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to reflection if building lambda instance fails. #683

Merged

Conversation

rgallardo-netflix
Copy link
Contributor

In some Java versions (9 and 11 at least, others not tested) the call to LambdaMetafactory fails with a mysterious "invalid bytecode" error. Instead of trying to hack our way around the quirks of an already-deprecated java version, we simply fall back to calling the method via reflection. It's slower but it works.

Closes #682

In some Java versions (9 and 11 at least, others not tested) the call to LambdaMetafactory fails with a mysterious "invalid bytecode" error. Instead of trying to hack our way around the quirks of an already-deprecated java version, we simply fall back to calling the method via reflection. It's slower but it works.

Closes Netflix#682
@rgallardo-netflix rgallardo-netflix merged commit 7fb804c into Netflix:2.x Oct 5, 2023
5 checks passed
@rgallardo-netflix rgallardo-netflix deleted the fallback-to-reflection branch October 5, 2023 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dynamic creation of lambdas for ConfigProxyFactory fails on java 9, 11, maybe others.
1 participant