Login  Register

Re: Java3D: Illegal reflective access

Posted by goodwilling on Jun 13, 2021; 7:34am
URL: https://forum.jogamp.org/Java3D-Illegal-reflective-access-tp4040908p4041158.html

Using java3D 1.7.1 and JogAmp 2.4.0-rc-20210111, our program works great in both Windows and Linux,
except the following messages come out in all platforms:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jogamp.java3d.JoglPipeline$1 (file: /home/test/lib/j3dcore.jar) to method sun.awt.X11GraphicsDevice.getScreen()
WARNING: Please consider reporting this to the maintainers of org.jogamp.java3d.JoglPipeline$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Using the option --illegal-access=debug, we get the following stacktrace:

WARNING: Illegal reflective access by org.jogamp.java3d.JoglPipeline$1 (file:/home/test/lib/j3dcore.jar) to method sun.awt.X11GraphicsDevice.getScreen()
        at org.jogamp.java3d.JoglPipeline$1.run(JoglPipeline.java:8601)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at org.jogamp.java3d.JoglPipeline.getScreen(JoglPipeline.java:8596)
        at org.jogamp.java3d.Screen3D.<init>(Screen3D.java:354)
        at org.jogamp.java3d.Canvas3D.<init>(Canvas3D.java:1123)
        at org.jogamp.java3d.Canvas3D.<init>(Canvas3D.java:1025)
        at org.jogamp.java3d.Canvas3D.<init>(Canvas3D.java:989)
         ...

Thank you very much.