jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathieu Tortuyaux (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JCLOUDS-1402) openjdk9 - An illegal reflective access operation has occurred
Date Thu, 05 Apr 2018 15:13:00 GMT
Mathieu Tortuyaux created JCLOUDS-1402:

             Summary: openjdk9 - An illegal reflective access operation has occurred
                 Key: JCLOUDS-1402
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1402
             Project: jclouds
          Issue Type: Bug
          Components: jclouds-core
    Affects Versions: 2.1.0
         Environment: $ uname -r
$ archlinux-java status
Available Java environments:
  java-9-openjdk (default)
            Reporter: Mathieu Tortuyaux

Hi ! 

While trying to run [this example|https://github.com/jclouds/jclouds-examples/blob/master/google-lb/src/main/java/org/jclouds/examples/google/lb/MainApp.java],
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
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
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

This message was sent by Atlassian JIRA

View raw message