Skip to content

Survive duplicated symbols generated by 2.13 #11991

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

Closed
wants to merge 1 commit into from

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Apr 5, 2021

Fixes #11173
Fixes #11984 (probably)

@odersky
Copy link
Contributor Author

odersky commented Apr 5, 2021

I am not sure what goes on here. Scala 2.13 generating duplicate symbols in some cases (seemingly related to type lambda encodings) looks like a bug. This PR simply avoids the assertion violation by not entering the second symbol. I guess we need more experience to find out whether that works in all cases.

@odersky odersky requested a review from smarter April 6, 2021 09:22
@odersky odersky added this to the 3.0.0 milestone Apr 6, 2021
@smarter
Copy link
Member

smarter commented Apr 16, 2021

I've verified that in the case of i11173, Scala 2 pickled the exact same type parameter symbol twice, so picking one or the other is fine. I've opened #12120 which goes a bit further than this PR and skips unpickling a type parameter which is already present, I've also fixed the test to actually test the Scala2Unpickler.

@odersky odersky closed this Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants