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

Mention Java serialization compatibility? #1202

Open
henrikbarium opened this issue Oct 31, 2018 · 1 comment
Open

Mention Java serialization compatibility? #1202

henrikbarium opened this issue Oct 31, 2018 · 1 comment

Comments

@henrikbarium
Copy link

henrikbarium commented Oct 31, 2018

Reading through Binary Compatibility of Scala Releases, it remains unclear whether there is any promise whether serialVersionUID will remain stable between Scala releases.

Specifically, if running and/or compiling an application on two different Scala versions (with same major version), will a Scala (case) class get the same serialVersionUID in both cases?

I do not know the answer to that question (though I know that it did change between Scala 2.12.6 and 2.12.7), but it would be helpful to know.

@SethTisue
Copy link
Member

SethTisue commented Nov 3, 2018

see also @szeiger's remarks at scala/scala#7171 (comment) 👍

I'd be hesitant to add any guarantees around serialization compatibility because it will make it even harder to change anything in a compatible way in minor releases. Plus we'd first need tooling to check for incompatible changes, similar to what MiMa does for binary compatibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants