-
Notifications
You must be signed in to change notification settings - Fork 399
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
If the switch expression is used to use boolean, JDTLS does not report an error #3141
Comments
I'm able to reproduce as well. I see the following in the logs :
|
Yes, it's a bit tricky, I've been busy working lately and if someone to pull request, I would appreciate it. |
I just updated JDT-LS to a newer version of JDT Core after finding eclipse-jdt/eclipse.jdt.core#2382 , which seems very similar (switch expression on a boolean). Looks like we'll get the fix for free! |
Swich expressions cannot be passed in boolean, float, double and long primitive types, including their wrapper types. However, JDTLS doesn`t report error here. By the way, My java version is 21.
The text was updated successfully, but these errors were encountered: