Skip to content
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

Improve serialization stability for ClassTags: avoid anonymous classes #8561

Closed
scabug opened this issue May 5, 2014 · 2 comments
Closed
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented May 5, 2014

Use named classes, marked with SerialVersionUID, rather than anonymous classes for predefined class tags.

This will provide for better for better serialization stability, as it is not subject to the whims of the $N class names.

Update run/t8549.scala to check that values we are checking (of types that we declare as Serializable) are not instances of anonymous classes.

@scabug
Copy link
Author

scabug commented May 5, 2014

Imported From: https://issues.scala-lang.org/browse/SI-8561?orig=1
Reporter: @retronym
Affected Versions: 2.11.0
See #8549

@scabug
Copy link
Author

scabug commented Jul 6, 2016

@lrytz said:
scala/scala#5264

@scabug scabug closed this as completed Jul 13, 2016
@scabug scabug added this to the 2.12.0-RC1 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants