Re: JAVA 11: "illegal reflective access" warning
Posted by Sailsman63 on Mar 16, 2020; 4:11pm
URL: https://forum.jogamp.org/JAVA-11-illegal-reflective-access-warning-tp4039322p4040443.html
>switched to v2.3.2 of jogamp-fat-all,
Which is still the old jogl version, so your
>WARNING: An illegal reflective access operation has occurred
>WARNING: Illegal reflective access by org.jogamp.java3d.JoglPipeline (file:/C:/Users/steveVl/Documents/SolidSystems/solidwork/java3d-1.7/j3dcore.jar) to method sun.awt.AppContext.getAppContext()
Is *expected*. You need to update to the 2.4.0 rc to get rid of that. (Oracle and the OpenJDK project have been working to remove access to many of these sun.*.* Packages since Java 9 - they were never officially supported, and they want to be able to remove or change them in breaking ways - which is also why you don't get the warning on Java 8. - at that point, they didn't care)
As someone who has worked through some of this transition with another application:
- update to the latest library
- recompile your application against the new library, using the oldest version of Java that you want to support
There seem to be a few places where the Fully Qualified Classname/Method name that the compiler generated when compiling against the old library causes issues when run against the new. (Weird exceptions, etc)