Warnings with Java 9
See original GitHub issueIssue details
I get an warning in logs, if i use Java 9 (in Java 8 there isnt this log).
Reproduction steps/code
Create an libGDX project and use java 9.
I have also tagged the source code: https://github.com/leeks-and-dragons/leeks-and-dragons/tree/java-9-warnings
Version of LibGDX and/or relevant dependencies
libGDX Version 1.9.6 (newest version).
Stacktrace / Log
If i execute the game, i get the following warning log (the game works, but this warning is shown):
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.lwjgl.LWJGLUtil$3 (file:/D:/Users/<Username>/.m2/repository/org/lwjgl/lwjgl/lwjgl/2.9.2/lwjgl-2.9.2.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.lwjgl.LWJGLUtil$3
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
Please select the affected platforms
- Android
- iOS (robovm)
- iOS (MOE)
- HTML/GWT
- Windows
- Linux
- MacOS
This was only checked with windows.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Java 9 Illegal Reflective Access Warning - Baeldung
Before Java 9, the Java Reflection API has a superpower: It could gain access to the non-public class members without limitation.
Read more >SuppressWarnings (Java SE 9 & JDK 9 ) - Oracle Help Center
Indicates that the named compiler warnings should be suppressed in the annotated element (and in all program elements contained in the annotated element)....
Read more >Illegal reflective access by com.google.protobuf.UnsafeUtil ...
Java 9 WARNING : Illegal reflective access by com.google.protobuf.UnsafeUtil #459. eed3si9n opened this issue on Nov 26, 2017 · 21 comments.
Read more >What is an illegal reflective access? - java - Stack Overflow
The first reflective-access operation to any such package causes a warning to be issued, but no warnings are issued after that point. This ......
Read more >@SafeVarargs Annotation in Java 9 with Example ...
We can use @SafeVarargs annotation with the methods that cannot be overridden because an overriding method can still perform unsafe operation on ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can also report no issues on fullscreen switching. The previous LWJGL update (not 3.1.3) fixed everything. I just need to find more time to work with my codebase…
@JuKu I’m using LWJGL3 on Linux and Windows, without problems on fullscreen switching. I’m only having V-Sync problems on AMD graphics card, because of libGDX implementation.