-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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 #1216
Comments
Duplicate of #1133 |
JDK 10 is still a half baked jvm so I highly recommend moving across, in JDK 10 though with Guice 4.2 i didn't experience any of these. java.lang opening also wasn't required on JDK 10 but is on JDK 11 Very easy to fix... Then |
I've released the fully modular guice artifacts based on 4.2.2 0.70.0.1 is busy going to maven central guice : https://search.maven.org/artifact/com.guicedee.services/guice/ guice extensions all available - Current site https://guicedee.com/ - Done the pages up to persistence, should have it all done by the weekend. |
Hi All, WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 |
@alan-hwp are you using Ubuntu's custom distribution of Maven? The official Maven distribution uses the "no-AOP" build of Guice which doesn't contain any CGLIB code. If you download an official distribution from https://maven.apache.org/ then you shouldn't see the warning. |
Greetings,
So far, this hasn't caused any issues, but we are a bit concerned, given the rate at which OpenJDK updates are becoming more restrictive/secure. We are running a docker image with the following: |
Also present in Guice 4.2.3
Environment: IntelliJ IDEA 2020.2 (Ultimate Edition) Apache Maven 3.6.3 Stack Trace:Stack Trace
|
👋 Hi all, exactly the same problem for me...
Version
|
Hi @antoinedvd (and anyone else using Ubuntu's build of Maven) this only happens with Ubuntu's build of Maven because they re-bundle it with the AOP enabled Guice jar - the official Apache/Maven distribution ships with the no-AOP Guice jar which does not have this warning. You can download the official Maven distribution from https://maven.apache.org/download.cgi |
Hi @mcculls, you right. Thank you for your advice, it works ! |
Partial revert of 621a7d6. Reason: All those "WARNING: Illegal reflective access" messages that appear, are caused by a wrongly built version of Maven in the Ubuntu repositories. They will go away with newer versions. For now, these messages are just informative and not harmful. More info: google/guice#1216
This warning appears on my project when I compile it. I'm using Guice 4.2.1 (maven) and JDK 10
I checked the Travis builds and it seems that the warning appears on travis CI also:
https://travis-ci.org/google/guice/jobs/440573805#L1747
Is there any quickfix?
The text was updated successfully, but these errors were encountered: