Javaの警告がうざい件
こんにちは。1510tyです。
突然ですが、LWJGL使ってゲーム作ってると出てくる
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/0x0000000083047c00 in an unnamed module (file:/C:/Users/1510ty/TekitouDevelopment/TekitouVoxelGame/Client/build/libs/TekitouVoxelGame-Client-20260927212944.jar) WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in 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.MemoryBackendUnsafeLegacy (file:/C:/Users/1510ty/TekitouDevelopment/TekitouVoxelGame/Client/build/libs/TekitouVoxelGame-Client-20260927212944.jar) WARNING: Please consider reporting this to the maintainers of class org.lwjgl.system.MemoryBackendUnsafeLegacy WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
これうざいですよね
これ消す方法AIに聞いたら、
--enable-native-access=ALL-UNNAMED --sun-misc-unsafe-memory-access=allow
これをjavaへの引数として指定すればいいみたいです
これで実際に直りました
以上です()