You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a blank project using the new Java 24. I just initialized GLFW and OpenGL following the https://www.lwjgl.org/guide and the following warnings appeared in the console.
Stacktrace or crash log output
WARNING: A restricted method in java.lang.System has been called
WARNING: java.lang.System::load has been called by org.lwjgl.system.Library$$Lambda/0x000001f687008908 in an unnamed module (file:/C:/Users/saull/.m2/repository/org/lwjgl/lwjgl/3.3.6/lwjgl-3.3.6.jar)
WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning forcallersin this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
WARNING: sun.misc.Unsafe::objectFieldOffset has been called by org.lwjgl.system.MemoryUtil (file:/C:/Users/saull/.m2/repository/org/lwjgl/lwjgl/3.3.6/lwjgl-3.3.6.jar)
WARNING: Please consider reporting this to the maintainers of class org.lwjgl.system.MemoryUtil
WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
Process finished with exit code 0
The text was updated successfully, but these errors were encountered:
Hi @saullo, thanks for the report! This is on our radar and will be solved in an upcoming (3.x.y) update which will use the new FFM API under the hood on recent Java versions.
Until this is available, I suggest ignoring or suppressing the warning using --sun-misc-unsafe-memory-access=false.
Version
3.3.6
Platform
Windows x64
JDK
Oracle OpenJDK 24
Module
LWJGL Core
Bug description
I created a blank project using the new Java 24. I just initialized GLFW and OpenGL following the https://www.lwjgl.org/guide and the following warnings appeared in the console.
Stacktrace or crash log output
The text was updated successfully, but these errors were encountered: