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

review: fix a stack overflow when calling getDeclaration on a CtExecutableReference related to a CtTypeParameter in noclasspath #1515

Merged
merged 5 commits into from
Sep 5, 2017

Conversation

msteinbeck
Copy link
Contributor

As you can see, getDeclaration causes a stack overflow. I have no idea why this is happening.

@surli
Copy link
Collaborator

surli commented Sep 4, 2017

@msteinbeck Thanks for reporting this one! I may have fixed it but could you improve your test for example by adding a real assert on the CtExecutableReference#getDeclaration?

@msteinbeck
Copy link
Contributor Author

could you improve your test for example by adding a real assert on the CtExecutableReference#getDeclaration?

Do you have a good idea what kind of assertion I should add? Maybe asserting the name of the reference and the name of the declaration?

@surli
Copy link
Collaborator

surli commented Sep 5, 2017

Maybe asserting the name of the reference and the name of the declaration?

Yes, for example! I'll see if I come with something better: I'll add it myself then.

@surli
Copy link
Collaborator

surli commented Sep 5, 2017

@msteinbeck ok actually I'm doing it so don't bother it ;)

@msteinbeck
Copy link
Contributor Author

ok actually I'm doing it so don't bother it ;)

Thank you very much!

@surli surli changed the title Added an example that causes a stack overflow when calling getDeclaration. review: fix a stack overflow when calling getDeclaration on a CtExecutableReference related to a CtTypeParameter in noclasspath Sep 5, 2017
@monperrus monperrus merged commit 82eb44b into INRIA:master Sep 5, 2017
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.

None yet

3 participants