jdereg / json-io

Convert Java to JSON. Convert JSON to Java. Pretty print JSON. Java JSON serializer. Deep copy Java object graphs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Illegal reflective access to java.lang.Enum.name

williamclocksin opened this issue · comments

I got this warning message. Using JDK 14.0.2. I have renamed your package, but everything else is intact.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by jsonio.MetaUtils (filename given) to field java.lang.Enum.name
WARNING: Please consider reporting this to the maintainers of jsonio.MetaUtils
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

Is this known? Is this fixed simply by using JDK >= 17?

I tried the same thing on JDK 20, and did not get the Warning message.