Skip to content
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

Illegal reflection warning when using Java 11 #832

Open
iPlessmann opened this issue Feb 21, 2020 · 1 comment
Open

Illegal reflection warning when using Java 11 #832

iPlessmann opened this issue Feb 21, 2020 · 1 comment
Assignees

Comments

@iPlessmann
Copy link

When running on Java 11, an illegal reflection warning is raised in com.twitter.jvm.Hotspot

Expected behavior

No warning

Actual behavior

[error] WARNING: An illegal reflective access operation has occurred
[error] WARNING: Illegal reflective access by com.twitter.jvm.Hotspot (file:/private/var/folders/7l/d6dbbl010kb7lp0jxnbz1pt00000gn/T/sbt_5e2d645a/target/bb6f250e/34456002/util-jvm_2.12-19.11.0.jar) to field sun.management.ManagementFactoryHelper.jvm
[error] WARNING: Please consider reporting this to the maintainers of com.twitter.jvm.Hotspot
[error] WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[error] WARNING: All illegal access operations will be denied in a future release

Steps to reproduce the behavior

Set your environment to use java 11 and then run sbt run on an application that uses Finagle. I am using Finagle 19.11.0

@ryanoneill
Copy link
Contributor

Hi @iPlessmann, as you can see, our Java 11 support still needs some work. Since Twitter forks and maintains our own JVM version internally, we're still using Java 8. Also, perhaps our version of Java 11 has been modified to make this a non-issue.

Would you be interested in submitting a pull request to resolve this? This code to modify is most likely in the util package, either Jvm or JvmStats.

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

2 participants