-
Notifications
You must be signed in to change notification settings - Fork 753
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
SwitchDefault crash in 2.10.0 when handling new-style switch with a default case #2705
Comments
copybara-service bot
pushed a commit
that referenced
this issue
Dec 3, 2021
Fixes #2705 PiperOrigin-RevId: 413868350
copybara-service bot
pushed a commit
that referenced
this issue
Dec 3, 2021
Fixes #2705 PiperOrigin-RevId: 413868350
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a
switch
statement that uses the newer->
notation but does not yield a value, the presence of adefault
case seems to trigger an exception in theSwitchDefault
rule.Using error-prone 2.10.0 (and Java 16 since that's what I already had installed).
Sample code:
Stack trace from maven:
The text was updated successfully, but these errors were encountered: