-
Notifications
You must be signed in to change notification settings - Fork 130
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
eclipse can't build when error in switch #2870
Comments
Are you able to provide a small and self contained example to reproduce the problem ?? Screen shots are not very useful. Can you try and attach a fuller stack trace when the problem shows up ?? Thanks. |
Every developer makes mistakes, and still the tool should not throw exceptions. So, if you provide the code that triggered this as text, not picture, then your mistake will help us fix the tool for the benefit of others running into a similar mistake :) |
Thank you for your answers |
Reproduced. Thanks @thomas2123 for the test case. |
Simplified test case:
JDK-22 reports:
|
Fixes eclipse eclipse-jdt#2870
thanks for the fix ^^ |
Fixes eclipse eclipse-jdt#2870
The fix is not merged in - master is not open for development of 4.34 work. Reopening. In any case, the ticket will be closed automatically when the fix is integrated. |
Fixes eclipse eclipse-jdt#2870
Fixes eclipse eclipse-jdt#2870
Fixes eclipse eclipse-jdt#2870
Fixes eclipse eclipse-jdt#2870
Fixes eclipse eclipse-jdt#2870
Fixes eclipse eclipse-jdt#2870
Hi,
As I am a junior developper, I sometime make silly mistakes, sorry for that ^^'.
As @stephan-herrmann suggested, I'll create a new issue for this one.
I got this error in building with 2024-06 :
I tried to revert to 2024-03, but I got this error :
But when I reverted back to 2023-12, I did not have the error in building anymore. As I went through the error, I found that it was linked to this error :
It's a mistake I often make, to use an enum as a Constant in a switch.
When the enum is replaced by a Constant, the error goes away and the building works again.
I hope I made this clear, sorry if I didn't.
Good luck and thank you for the beautiful software you make.
The text was updated successfully, but these errors were encountered: