Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

"An illegal reflective access operation" warning on JDK9+ #125

Closed
mocobeta opened this issue Oct 7, 2018 · 1 comment
Closed

"An illegal reflective access operation" warning on JDK9+ #125

mocobeta opened this issue Oct 7, 2018 · 1 comment
Labels

Comments

@mocobeta
Copy link
Collaborator

mocobeta commented Oct 7, 2018

When running on JDK9+, some warnings are observed (JDK emits those to stdout, so we cannot ignore it.)

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/Users/tomoko.uchida/opt/luke/luke-swing-7.5.0/target/luke-swing-with-deps.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
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

(Luke highly relies on Guice to tie model classes to UI components.)

Google Guice team is working to resolve it.
google/guice#1133
google/guice#1205

We should keep watching and upgrade Guice version when the problem is settled.

@mocobeta mocobeta added the task label Oct 29, 2018
@mocobeta
Copy link
Collaborator Author

JVM option --add-opens java.base/java.lang=ALL-UNNAMED is needed to allow deep reflection on JDK9+.

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

No branches or pull requests

1 participant