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

WPI: isSubtype crash related to type variables #5708

Closed
kelloggm opened this issue Mar 7, 2023 · 0 comments · Fixed by #5709
Closed

WPI: isSubtype crash related to type variables #5708

kelloggm opened this issue Mar 7, 2023 · 0 comments · Fixed by #5709
Assignees

Comments

@kelloggm
Copy link
Contributor

kelloggm commented Mar 7, 2023

I've observed this problem on two different projects. There is an example on this branch (you can observe the failure by running ./gradlew ainferNullnessAjavaTest). Sorry the test isn't completely minimized, but hopefully it should be minimized enough to get the idea.

The symptom of the problem is a crash in QualifierHierarchy:

      :-1: other: error: QualifierHierarchy: missing annotation in hierarchy @org.checkerframework.checker.nullness.qual.NonNull. found: @org.checkerframework.checker.initialization.qual.Initialized

with the following stacktrace:

        at org.checkerframework.javacutil.BugInCF.<init>(BugInCF.java:34)
        at org.checkerframework.framework.type.QualifierHierarchy.isSubtype(QualifierHierarchy.java:140)
        at org.checkerframework.common.wholeprograminference.WholeProgramInferenceImplementation.updateAnnotationSet(WholeProgramInferenceImplementation.java:876)
...

Based on this stacktrace, I suspect that there is something wrong with the fix we merged a few days ago in #5618. @smillst if you have a chance to look at this this morning, I'd appreciate it. I'll take a look in a few hours, but I'm busy until about 2pm eastern time.

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 a pull request may close this issue.

1 participant