We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When marking fields as @transient within traits, those are not marked tansient in the resulting classes.
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-289?orig=1 Reporter: Jan Kriesten (jkriesten)
Sorry, something went wrong.
@odersky said: fixed in r13624
Jan Kriesten (jkriesten) said: @transient vars with traits are still not transfered into the resulting class as transient fields.
given the following scenario:
trait Log { @transient var logger: String = _ def log = { if( logger==null ) logger = "I'm new here" logger } } object ScalaTest extends Log { def main(args : Array[String]) : Unit = { System.out.println( log ) } }
object ScalaTest should have a transient field 'logger' when the trait's applied. currently, it's generated just as a private field.
regards, --- jan.
@odersky said: Milestone 2.7.0 deleted
odersky
No branches or pull requests
When marking fields as @transient within traits, those are not marked tansient in the resulting classes.
The text was updated successfully, but these errors were encountered: