-
Notifications
You must be signed in to change notification settings - Fork 133
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
[Resource Leak Analysis] NPE and build failure #3328
Comments
Could you please try latest Eclipse build from https://download.eclipse.org/eclipse/downloads/drops4/I20241119-0600/? |
Fails on master too: This doesn't involve switch expression per se, but is arising from resource leak analysis code. (Changed subject/title to reflect that.) @stephan-herrmann - surprised to see this code run even when the annotation based resource analysis is turned off. Caused by: java.lang.NullPointerException: Cannot read field "binding" because "tracker2" is null |
caused by 4989c7f |
I have encountered a compile error on a switch expression.
It seems the error only happens when an Object implementing AutoCloseable is involved.
I have created a minimum reproducable example here:
compile-error-switch example on github
There is no error compiling with OpenJDK Compiler, but in Eclipse it produces this error:
Tested on Linux Mint 22.
openjdk 21.0.5 2024-10-15
OpenJDK Runtime Environment (build 21.0.5+11-Ubuntu-1ubuntu124.04)
OpenJDK 64-Bit Server VM (build 21.0.5+11-Ubuntu-1ubuntu124.04, mixed mode, sharing)
Eclipse IDE for Java Developers (includes Incubating components)
Version: 2024-09 (4.33.0)
Build id: 20240905-0614
maven-3.9.9
The text was updated successfully, but these errors were encountered: