-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Under Eclipse, editing slightly a program make it fail after a modification #3
Comments
Maurizio answered
|
Maurizio added Performed some more tests:
I compiled this with both javac and the Eclipse compiler. With javac,
With Eclipse, I see the following:
Of course, the code compiled with javac runs, whereas the one compiler
Which seems like a bug in the Eclipse compiler, and an unfortunate one |
I confirm that using IntelliJ avoid this problem. |
@jzy3d If you think this is a bug in the compiler (AFAIK Java 17 support is still new and there might be improvements needed) it would be best to report these here: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT (Component core, prefix [ejc]) |
Thank you @laeubi . I haven't had the time to do it, this ticket as already been forwarded here! |
(maybe not Panama related), working with an IDE is not easy for me because when running from Eclipse STS 4, I often got
Exception in thread "main" java.lang.IllegalAccessError: failed to access class opengl.glut_h_3 from class org.jzy3d.chart.factories.PanamaGLFrame (opengl.glut_h_3 and org.jzy3d.chart.factories.PanamaGLFrame are in unnamed module of loader 'app')
The exception is appearing each time I change a line of code. When leaving Eclipse for building from CLI, I can start the app from CLI, and then get IDE working again (!). I always have VM args
-XstartOnFirstThread --enable-native-access=ALL-UNNAMED --add-modules jdk.incubator.foreign -Djava.library.path=.:/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries/ activated.
Also worth sharing - but not a Panama problem : the "Organize import" from Eclipse always replace
import static opengl.glut_h.*;
by
Which are not accessible, so every time I want to update and clean imports, they actually got mangled the bad way for Eclipse to work. I am still not a king with recent Java version so I might have badly configured my IDE.
The text was updated successfully, but these errors were encountered: