-
Notifications
You must be signed in to change notification settings - Fork 22
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 #138
Comments
Hi,
this occurs on Java version >= 9. If you created a module you can fix this
by declaring your module as 'open module' in module-info. This way you
allow reflective access in a Java >= 9 compatible way.
Gregor Dschung <notifications@github.com> schrieb am Mi., 18. Nov. 2020,
11:50:
… I'm getting the following warning when using remap with Java 11:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/Users/ich/.gradle/caches/modules-2/files-2.1/cglib/cglib/3.2.9/a4b7af2ea0a5ecad2d283c2fff119009f0c60d20/cglib-3.2.9.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 net.sf.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
What is the recommended way to suppress this warning?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#138>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADNFVQQJ2G7NT4HTQK4HSSDSQORIFANCNFSM4TZZVGDQ>
.
|
Thanks for the quick response, which gave me the correct hint (towards the module system). Credits also to @nipafx, whose blog post gave me further insights. At the moment I do not want to migrate to the JPMS , so I'm now using the application {
applicationDefaultJvmArgs = ["--add-opens", "java.base/java.lang=ALL-UNNAMED"]
} |
Glad to hear, the blog post helped, @chkpnt! Huh, I didn't know Remondis had an IT branch - talk about garbage collection... 😂 Sorry for the silly pun, I couldn't resist. |
Haha yes, default joke for new employees ;) |
I'm getting the following warning when using
remap
with Java 11:What is the recommended way to suppress this warning?
The text was updated successfully, but these errors were encountered: