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

An illegal reflective access operation has occurred #31

Closed
uncovery opened this issue Oct 2, 2019 · 1 comment
Closed

An illegal reflective access operation has occurred #31

uncovery opened this issue Oct 2, 2019 · 1 comment

Comments

@uncovery
Copy link
Contributor

uncovery commented Oct 2, 2019

Environment info

  • BlockMap version: BlockMap-cli-1.5.1.jar
  • Java version: openjdk version "12.0.2" 2019-07-16
    OpenJDK Runtime Environment 19.3 (build 12.0.2+9)
    OpenJDK 64-Bit Server VM 19.3 (build 12.0.2+9, mixed mode, sharing)
  • Operating system: CentOS 7, Linux 3.10.0-862.2.3.el7.x86_64

Description

I get the following warnings:

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.gson.internal.reflect.UnsafeReflectionAccessor (file:/home/minecraft/server/blockmap/BlockMap-cli-1.5.1.jar) to constructor java.util.Optional()
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.reflect.UnsafeReflectionAccessor
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

Steps to reproduce

  1. java -jar BlockMap.jar -v render ./region --create-big-image --min-X=-2048 --max-X=2048 --min-Z=-2048 --max-Z=2048 -o ./png --create-tile-html
@piegamesde
Copy link
Owner

Please consider reporting this to the maintainers of com.google.gson.internal.reflect.UnsafeReflectionAccessor

BlockMap only uses GSON as dependency, I do not maintain that class. You should file the bug to them instead.

This may be a duplicate of google/gson#1540

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

No branches or pull requests

2 participants