8000 Illegal Reflective Access in Hotspot.scala · Issue #235 · twitter/util · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Illegal Reflective Access in Hotspot.scala #235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ryanb93 opened this issue Nov 5, 2018 · 3 comments
Closed

Illegal Reflective Access in Hotspot.scala #235

ryanb93 opened this issue Nov 5, 2018 · 3 comments

Comments

@ryanb93
Copy link
ryanb93 commented Nov 5, 2018

The following warning is produced when run in a JRE > 9.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.twitter.jvm.Hotspot (file:/hcom/servers/pros/pros.jar) to field sun.management.ManagementFactoryHelper.jvm
WARNING: Please consider reporting this to the maintainers of com.twitter.jvm.Hotspot
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

Class.forName("sun.management.ManagementFactoryHelper").getDeclaredField("jvm")

@kevinoliver
Copy link
Contributor

Thanks. I believe we don't officially support JDK 9+ yet. I think our next version will be JDK 11 which is an LTS release. We have not begun this effort.

@luciferous
Copy link
Collaborator

We'll be forced to tackle this issue when we target JDK 11.

@hartmut27
Copy link

side note: as a work-around - to suppress the warnings in the log, comatible with OpenJDK 14 JVM: Gist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

4 participants
0