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

Fix #4357: Avoid cyclic reference when parsing Java classfile #4358

Merged
merged 1 commit into from
Apr 22, 2018

Conversation

smarter
Copy link
Member

@smarter smarter commented Apr 21, 2018

We force all types appearing in the extends clause using cook before
completing the current class, in B_1.java this means we force C before
B_1 is completed, ClassfileLoader#load ends up calling
scalacLinkedClass which before this commit forced the owner of C,
causing a cycle.

We force all types appearing in the extends clause using `cook` before
completing the current class, in B_1.java this means we force `C` before
`B_1` is completed, ClassfileLoader#load ends up calling
`scalacLinkedClass` which before this commit forced the owner of `C`,
causing a cycle.
@smarter smarter requested a review from odersky April 21, 2018 14:08
@smarter smarter merged commit 8feb596 into scala:master Apr 22, 2018
@allanrenucci allanrenucci deleted the fix/java-tparams-cycle branch April 23, 2018 06:33
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