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: add handling for UnresolvedReferenceBinding in ReferenceBuilder #5294

Merged
merged 5 commits into from Jul 3, 2023

Conversation

MartinWitt
Copy link
Collaborator

@MartinWitt MartinWitt commented Jun 19, 2023

I am scared to add JDK code to the test resources. Any better suggestions? fixes #5290

@MartinWitt MartinWitt changed the title Leading-constrictor @MartinWitt fix: add handling for UnresolvedReferenceBinding in ReferenceBuilder Jun 19, 2023
@MartinWitt MartinWitt changed the title @MartinWitt fix: add handling for UnresolvedReferenceBinding in ReferenceBuilder fix: add handling for UnresolvedReferenceBinding in ReferenceBuilder Jun 19, 2023
@MartinWitt MartinWitt marked this pull request as ready for review June 19, 2023 19:50
@MartinWitt
Copy link
Collaborator Author

Given the current design, the new method has to return null. Any empty CtTypeReference is not helpful and hides the error.

@MartinWitt MartinWitt changed the title fix: add handling for UnresolvedReferenceBinding in ReferenceBuilder review: fix: add handling for UnresolvedReferenceBinding in ReferenceBuilder Jun 19, 2023
@MartinWitt MartinWitt changed the title review: fix: add handling for UnresolvedReferenceBinding in ReferenceBuilder fix: add handling for UnresolvedReferenceBinding in ReferenceBuilder Jun 19, 2023
@MartinWitt MartinWitt changed the title fix: add handling for UnresolvedReferenceBinding in ReferenceBuilder review: fix: add handling for UnresolvedReferenceBinding in ReferenceBuilder Jun 19, 2023
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be for minimizing this and recreating the bug :^)

@MartinWitt
Copy link
Collaborator Author

I haven't found any small reproducer, so lets close this and live with the bug.

@I-Al-Istannen
Copy link
Collaborator

I'd be in favor of deleting the test and merging it without any. The change is localized to an if that is not triggered by anything currently (or crashes), so we can't really make stuff worse.

@I-Al-Istannen I-Al-Istannen merged commit 863c9a3 into INRIA:master Jul 3, 2023
12 checks passed
@I-Al-Istannen I-Al-Istannen deleted the leading-constrictor branch July 3, 2023 09:22
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]: Build model with source code from stdlib
2 participants