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
private lazy vals break binary compatibility #3038
Comments
Imported From: https://issues.scala-lang.org/browse/SI-3038?orig=1 |
@paulp said: |
@hubertp said: |
@hubertp said: |
Using Scala 2.8.0.r20828 and Java 1.6
Because the bitmask for lazy vals is shared by classes in an inheritance chain, adding a private lazy val breaks binary compatibility/separate compilation. Consider A.scala and B.scala:
A.scala
B.scala
and a test class in C.scala
Compiling all files and running C prints
Change A.scala to use a private lazy val:
Recompiling A.scala and running C prints
The text was updated successfully, but these errors were encountered: