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
@UnknownInitialization
switch
New in 3.39.0-eisop1:
$ cat E.java enum E { FOO; E getIt() { return FOO; } String go() { E e = getIt(); switch (e) { case FOO: return "foo"; } throw new AssertionError(e); } } $ checker/bin/javac -processor nullness E.java E.java:14: error: [argument.type.incompatible] incompatible argument for parameter detailMessage of AssertionError constructor. throw new AssertionError(e); ^ found : @UnknownInitialization E required: @Initialized Object 1 error
The text was updated successfully, but these errors were encountered:
Liam reports that this behavior happens with typetools, too. (Sorry for not checking.) Maybe it's related to the changes for null cases in switch?
Sorry, something went wrong.
No problem. Thanks to you and Liam for reporting these issues!
Successfully merging a pull request may close this issue.
New in 3.39.0-eisop1:
The text was updated successfully, but these errors were encountered: