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 #5472 #5476

Merged
merged 5 commits into from Dec 27, 2022
Merged

Fix #5472 #5476

merged 5 commits into from Dec 27, 2022

Conversation

kelloggm
Copy link
Contributor

The underlying problem is that @NotOwning and @Owning are owned by the Must Call Checker, not the Resource Leak Checker. So, only the Must Call Checker has access to such annotations if (and only if) they were written in stub files. I fixed both the problem described in #5472 and all other uses of getDeclAnnotation(elt) involving Owning or NotOwning in the consistency analyzer.

Supersedes #5475.

Copy link
Contributor

@msridhar msridhar left a comment

Choose a reason for hiding this comment

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

Nice find and fix!

@msridhar msridhar enabled auto-merge (squash) December 27, 2022 20:53
@msridhar msridhar merged commit be7c998 into typetools:master Dec 27, 2022
@msridhar msridhar deleted the javaEE-proper-fix branch December 27, 2022 23:47
wmdietl pushed a commit to eisop/checker-framework that referenced this pull request Feb 8, 2023
The underlying problem is that `@NotOwning` and `@Owning` are owned by the Must Call Checker, not the Resource Leak Checker. So, only the Must Call Checker has access to such annotations if (and only if) they were written in stub files. I fixed both the problem described in typetools#5472 and all other uses of `getDeclAnnotation(elt)` involving `Owning` or `NotOwning` in the consistency analyzer.
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

2 participants