-
Notifications
You must be signed in to change notification settings - Fork 21
LambdaDeserializer makes incorrect call to JDK's altMetafactory which raises an IllegalArgumentException on JDK 17 #12419
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
Comments
openjdk/jdk@fc08af5#diff-d19e5ac459022586c38dfa9f2b111ac223484586091eaff12a24fb6d417a9506R510 We need to determine ASAP if this is a JDK bug or if we were relying on unspecified behaviour. |
Found a real, but unrelated bug in |
The bug might not repro on typelevel/scalacheck:main because of a bug introduced to the |
I don't think so... all the recent runs have used scalacheck commits from June 2021. |
I am now able to reproduce this locally on MacOS, using 17-ea+27-2476. (On Jenkins, we presently have 17-ea+26-2439.) (Before, it wasn't reproducing either because I was on 17-ea+22-1964 or because I was confused, not entirely sure which.) |
I've transferred this to scala-dev now that we know it isn't a community build phantom. Perhaps we'll transfer it again, to scala/bug :-) |
Spotted the problem, mea culpa. |
@retronym which 2.12.x versions are affected? |
@SethTisue I believe this would affect any version of 2.12 or 2.13 |
2.13 shouldn't be affected thanks to scala/scala@82fd591 :) |
Indeed! Just noticed that. |
## Motivation The spark test fails with JDK 17 on Jenkins and should be fixed. ## Modifications * Add the missing `--add-opens` * Upgrade to the latest maintenance version of scala `2.12` to have the fix for scala/bug#12419 which makes the test fails
what was the fix for it. I started seeing this in intellij out of sudden (with Amazon Corretto 17.0.5) and scala 2.12.8. I did not face this issue a week back. |
The fix is upgrading to the latest 2.12.x release. 2.12.8 is pretty old. Support for JDK 17 wasn't added until 2.12.15. |
Thanks. upgrade to 2.12.17 fixed this issue. |
The text was updated successfully, but these errors were encountered: