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 unqualified type reference in catch block becoming qualified #3800

Conversation

slarse
Copy link
Collaborator

@slarse slarse commented Feb 18, 2021

Fix #3799

Fixes the problem by building the type reference with a higher-level method in the JDTTreeHelper, where this particular problem is already addressed. I had to adapt the signature of JDTTreeBuilderHelper.createCatchVariable() to also accept a scope for this, but I think this is more correct than it was previously.

@slarse slarse changed the title wip: fix: Fix unqualified type reference in catch block becoming qualified review: fix: Fix unqualified type reference in catch block becoming qualified Feb 18, 2021
@monperrus
Copy link
Collaborator

LGTM, the fix is surprisingly simple and regular. Will merge.

@monperrus monperrus changed the title review: fix: Fix unqualified type reference in catch block becoming qualified fix: Fix unqualified type reference in catch block becoming qualified Feb 22, 2021
@monperrus monperrus merged commit e49d161 into INRIA:master Feb 22, 2021
@monperrus
Copy link
Collaborator

Thanks @slarse

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.

bug: Package of unqualified type name in catch not marked as implicit
2 participants