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 reflective access (kryo-5.0.0-RC7) #747

Closed
NoahR02 opened this issue Jul 28, 2020 · 1 comment
Closed

Illegal reflective access (kryo-5.0.0-RC7) #747

NoahR02 opened this issue Jul 28, 2020 · 1 comment

Comments

@NoahR02
Copy link

NoahR02 commented Jul 28, 2020

I just started using kryo today and when I was running the example from the website, I was getting these warnings :

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.esotericsoftware.kryo.unsafe.UnsafeUtil (file:/C:/Gradle/caches/modules-2/files-2.1/com.esotericsoftware/kryo/5.0.0-RC7/2508d4e0c6c3317185f592eef3d7ff8afcfb61f5/kryo-5.0.0-RC7.jar) to method sun.nio.ch.DirectBuffer.cleaner() WARNING: Please consider reporting this to the maintainers of com.esotericsoftware.kryo.unsafe.UnsafeUtil 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

I downloaded kryo with Gradle via this repo.

@theigl
Copy link
Collaborator

theigl commented Jul 29, 2020

@NoahR02: This is just a warning in current JDK versions. You can ignore it, or prevent Kryo from accessing Unsafe by starting your process with:

-Dkryo.unsafe=false

See #626 and #543

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