Skip to content

Fix #6989: Make sure scalacLinkedClass finds companion when unpickling #7101

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
Aug 27, 2019

Conversation

odersky
Copy link
Contributor

@odersky odersky commented Aug 26, 2019

scalacLinkedClass uses unforcedDecls which might miss a companion object when
unpickling. I tried to make scalacLinekdClass stricter, but ran into
problems. It turns out that it is finely balanced as it is.

The fix is to make sure the owner is completed before calling scalacLinkedClass
from an unpickler.

…ckling

scalacLinkedClass uses unforcedDecls which might miss a companion object when
unpickling. I tried to make scalacLinekdClass stricter, but ran into
problems. It turns out that it is finely balanced as it is.

The fix is to make sure the owner is completed before calling scalacLinkedClass
from an unpickler. I trued to do the same for the Scala2Unpickler but that ran
again into problems. So this is quite the mine-field...
Copy link
Member

@bishabosha bishabosha left a comment

Choose a reason for hiding this comment

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

LGTM

@bishabosha bishabosha merged commit 9de9c4d into scala:master Aug 27, 2019
@bishabosha bishabosha deleted the fix-#6989 branch August 27, 2019 09:50
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