We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Minimized from the real code:
$ cat Monitor.java class Monitor { void acquire() { String s = ""; try { return; } finally { try { signal(); } finally { s.toString(); } } } void signal() {} } $ checker/bin/javac -processor org.checkerframework.checker.nullness.NullnessChecker Monitor.java Monitor.java:11: error: [dereference.of.nullable] dereference of possibly-null reference s s.toString(); ^ 1 error
I don't think there's a way for s to be null there.
s
null
Source file and -version -verbose -AprintAllQualifiers output attached.
-version -verbose -AprintAllQualifiers
The text was updated successfully, but these errors were encountered:
Thanks for the report, Chris. I can't seem to minimize this any further (which I presume is because you did the same thing.)
Sorry, something went wrong.
No branches or pull requests
Minimized from the real code:
I don't think there's a way for
s
to benull
there.Source file and
-version -verbose -AprintAllQualifiers
output attached.The text was updated successfully, but these errors were encountered: