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
This is a fallout after issue #2916 was fixed, I think.
Here's the relevant code that Javac accepts but we reject:
class X { public void foo(Boolean boxed) { switch (boxed) { case boolean b -> {} default -> {} } } }
The reported error is: Switch cannot have both boolean values and a default label
This is because we are using the same Exhaustive flag for total pattern as well as true+false. Should we differentiate between the two conditions?
@stephan-herrmann
The text was updated successfully, but these errors were encountered:
@stephan-herrmann - thanks for taking a look
Sorry, something went wrong.
stephan-herrmann
No branches or pull requests
This is a fallout after issue #2916 was fixed, I think.
Here's the relevant code that Javac accepts but we reject:
The reported error is: Switch cannot have both boolean values and a default label
This is because we are using the same Exhaustive flag for total pattern as well as true+false. Should we differentiate between the two conditions?
@stephan-herrmann
The text was updated successfully, but these errors were encountered: