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

WARNING: An illegal reflective access operation has occurred #31

Open
lowang opened this issue Mar 8, 2023 · 0 comments
Open

WARNING: An illegal reflective access operation has occurred #31

lowang opened this issue Mar 8, 2023 · 0 comments

Comments

@lowang
Copy link

lowang commented Mar 8, 2023

when running my program using g419-liner2-cli-2.7.jar on openjdk 11.0.18 I've got following warnings while loading chunkers:

-> Setting up chunker: chunker_timex_norm_duration
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.gson.internal.bind.ReflectiveTypeAdapterFactory (file:/app/jars/g419-liner2-cli-2.7.jar) to field java.util.regex.Pattern.pattern
WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.bind.ReflectiveTypeAdapterFactory
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

As message says openjdk 17 is blocked by this.
I've spotted this warnings because my other deps can't run on jdk 8:
NameError: cannot link Java class cz.cuni.mff.ufal.morphodita.Tagger cz/cuni/mff/ufal/morphodita/Tagger has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

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

1 participant