question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings with Java 9

See original GitHub issue

Issue 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:closed
  • Created 6 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
xGnoSiSxcommented, Oct 30, 2017

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…

1reaction
francogpcommented, Oct 25, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found