Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.1.0
-
None
-
$ uname -r
4.15.14-1-ARCH
$ archlinux-java status
Available Java environments:
java-9-openjdk (default)
-
Patch
Description
Hi !
While trying to run this example, I got the following warning:
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/home/mathieu/Desktop/lab/jclouds-optel/test/target/cloud-scheduler-1.0-SNAPSHOT-shaded.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$2 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
After a few searches, I found that this is a known issue caused by Google/Guice and one one his dependency: cglib. It has been fixed in Google/Guice release 4.2. But jclouds-core is using Google/Guice release 3.0
$ mvn dependency:tree | grep guice -B 2 [INFO] | | \- org.apache.jclouds:jclouds-core:jar:2.1.0:compile [INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile [INFO] | | +- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile [INFO] | | +- com.google.inject:guice:jar:3.0:compile