-
Notifications
You must be signed in to change notification settings - Fork 21
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
Scala 2.13.1 regression: Crash on lazy vals initialised from class parameters #11855
Comments
Looks like this is a duplicate of #11781 ? |
TJC
changed the title
Scala 2.13 regression: Crash on lazy vals initialised from class parameters
Scala 2.13.1 regression: Crash on lazy vals initialised from class parameters
Jan 20, 2020
Did that fix not merge forward? Maybe scala/scala#8648 |
The fix just missed the previous forward merge by a couple of days. |
Ah, oh no! |
Yep. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Regression when upgrading from Scala 2.12.10 to 2.13.1:
'lazy vals' cause java.lang.IllegalAccessError if they are initialised with a class parameter.
Workaround
In the above code, making this change results in the code no longer crashing -- just defining the class parameter as a
val
Environment:
Runnable code demonstrating issue
https://github.com/TJC/scala-2.13-lazy-val-issue
Check out the repo, ensure you have JDK 11, and then run
sbt test
The text was updated successfully, but these errors were encountered: