-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add @transient
to make the serialization check happy.
#7424
Conversation
|
@szeiger please take a look. |
refs:scala/scala-dev#562 |
I encounter serialization errors once but not again. |
@transient
to make the serialization check happy.@transient
to make the serialization check happy.
This comment has been minimized.
This comment has been minimized.
rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks consistent with my admittedly rather shaky understanding of how Java serialization interacts with Scala objects.
@SethTisue - I'd feel more comfortable if Stefan looked over this one also, but would you rather merge it now on the basis of my less-expert understanding of how serialization interacts with companion objects? |
I'll leave the merge to @szeiger |
@szeiger - Did you want to take a look at this? |
@hepin1989 under what circumstances were we seeing failures? |
@SethTisue It occur when I run sbt test. |
I rerun the current 2.13.x, test pass now, may this PR is not needed anymore. |
we might as well save the bytes by not serializing unneeded stuff, though |
Rebased |
thanks @hepin1989 ! |
No description provided.