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

ClassfileParser: Avoid cycle when accessing companion in inner class lookup #16882

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

smarter
Copy link
Member

@smarter smarter commented Feb 10, 2023

Previously, the call to info on the module val could lead to a cycle since the module val might be in the process of being completed. This commit fixes this by only using the module class which is all we need to lookup members.

Fixes #15288.
Fixes #14059.

Co-Authored-By: Tom Grigg [email protected]

…lookup

Previously, the call to `info` on the module val could lead to a cycle since the
module val might be in the process of being completed. This commit fixes this by
only using the module class which is all we need to lookup members.

Fixes scala#15288.
Fixes scala#14059.

Co-Authored-By: Tom Grigg <[email protected]>
@smarter smarter requested a review from sjrd February 10, 2023 18:13
@michelou
Copy link
Contributor

@smarter + @griggt Well done !

@sjrd sjrd added this pull request to the merge queue Feb 14, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 14, 2023
@smarter smarter added this pull request to the merge queue Feb 15, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Feb 16, 2023
@smarter smarter merged commit 0ad4a57 into scala:main Feb 16, 2023
@smarter smarter deleted the fix-i15288 branch February 16, 2023 12: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
3 participants