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: Fix infinite loop on type parameter in qualified name #3905

Merged
merged 5 commits into from
May 5, 2021

Conversation

slarse
Copy link
Collaborator

@slarse slarse commented May 4, 2021

Fix #3903

This PR fixes the infinite loop described in #3903 by assuming that any qualified name that contains a type parameter reference is fully qualified. I'm pretty sure that assumption is valid, as one can only reference a type parameter from within the class or method that defines it.

In any case, it's better than an infinite loop :)

@slarse slarse changed the title wip: fix: Fix infinite loop on type parameter in qualified name review: fix: Fix infinite loop on type parameter in qualified name May 4, 2021
@monperrus
Copy link
Collaborator

Nice fix! This is heavily tested, so I will merge with confidence.

@monperrus monperrus changed the title review: fix: Fix infinite loop on type parameter in qualified name fix: Fix infinite loop on type parameter in qualified name May 5, 2021
@monperrus monperrus merged commit 78d64fe into INRIA:master May 5, 2021
@monperrus
Copy link
Collaborator

Thanks @slarse for the bug and the fix!

@slarse
Copy link
Collaborator Author

slarse commented May 5, 2021

Thanks to me for the fix, thanks to @gchaperon for reporting the bug along with an easily reproducible scenario!

@slarse slarse deleted the issue/3903-fix-infinite-loop branch May 5, 2021 10:01
@monperrus monperrus mentioned this pull request Aug 19, 2021
woutersmeenk pushed a commit to woutersmeenk/spoon that referenced this pull request Aug 29, 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
Development

Successfully merging this pull request may close these issues.

Infinite loop in buildModel
2 participants