Skip to content

Stabilise OldHashSet serialisation independent of the generated classfile #303

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

Merged
merged 1 commit into from
Jul 14, 2025

Conversation

jchyb
Copy link
Contributor

@jchyb jchyb commented Jul 10, 2025

Hello!
After adjusting flags generated in classfiles for mixin methods in Scala 3, we have come across failures in our closed community-build test suite in the SerialisationStabilityTest:

java.io.InvalidClassException: scala.collection.immutable.OldHashMap; local class incompatible: stream classdesc serialVersionUID = 1962612746028715777, local class serialVersionUID = 5369229903824096956

To fix this, I’ve adjusted the SerialVersionUID of the problematic OldHashSet, and updated the scala-3 version of the test (which I had to do, as I based the serialVersionUID on the one generated for scala-2, to keep that stable).

This isn’t strictly necessary (we can just adjust our fork we use in the closed community-build to make the test pass), but I saw similar changes being done in the past (#220, #223, #240) and I think this will be useful regardless.

@jchyb jchyb force-pushed the stabilise-OldHashSet branch from 5db57a5 to 2c76751 Compare July 11, 2025 10:39
Copy link
Member

@lrytz lrytz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@lrytz lrytz merged commit a03f773 into scala:main Jul 14, 2025
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants