-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix lambda inference on openj9 and Java 12 and higher. #66
Conversation
I'm honestly not sure how I missed this error, it's... pretty obvious now that I look at it. I probably fixed it locally and forgot to commit or something.
Hey, just checking in on this PR, we use this tool in Forge and are running into this issue as well. This change seems to be working. So checking to see if this will be pulled. |
Java 14 changed the way the JVM handles varargs internally, meaning that new Object[] {...} can't be used as a substitute for varargs on Java 6 source level anymore. However, invokeWithArguments explicitly wants an Object[], so it still works.
(copy-pasting from commit message since people generally don't read those) |
HI @jhalterman : Can we merge this pull request or is there any modifications expected to merge this pull request? |
Fix crash on launch with Oracle JDK 11.0.6+.
Ping @jhalterman 😉 |
Any chances to get this merged in the near future? @jhalterman |
Hi @Nuclearfarts , I just found it should work with Here is the minimum code which works all java versions between 9 and 15.
|
I saw the comment #49 (comment) It's for openj9 |
quite honestly i'm not looking at this anymore since we've managed to remove most uses of it. |
@jhalterman Will you make a new release? Does this also fix #52? |
@jhalterman Fantastic, thanks! |
I fixed the problem in my last PR (I feel like I'd fixed that locally and forgot to add it to git, whoops) and also added support for lambda inference on Java 12 and higher by changing the strategy for circumventing access control on those versions.