Xtend 2.14.0 / Java 10: Illegal reflective access by guice 3

472 views
Skip to first unread message

Michael Bischoff

unread,
Jun 5, 2018, 2:50:35 PM6/5/18
to Xtend Programming Language
Hello,
I tried the new xtext / xtend with Java 10.

Everything works fine for me, but I get the following warnings:

[INFO] --- xtend-maven-plugin:2.14.0:compile (default) @ jpaw-money-test ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/home/mbi/.m2/repository/com/google/inject/guice/3.0/guice-3.0.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


According to https://github.com/google/guice/issues/1085, for Java 9 at least guice 4.2.0 is required due to an old version of asm in prior versions, and the request to the guice team is to build a 4.2.1 with at least asm 6.1.1 (for Java 10) or better 6.2 (for Java 11).

Are there plans to upgrade xtext / xtend to a newer guice as well, to avoid the warnings, or is this something which can be achieved by declaring additional dependencies in the pom?

Best regards,
     Michael


Karsten Thoms

unread,
Jun 5, 2018, 4:36:44 PM6/5/18
to xtend...@googlegroups.com
We will eliminate those discouraged calls. At the moment they are... warnings. We are aware of that. You might try to overload the ASM plugin dependency with v6.1.1.

~Karsten
--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Christian Dietrich

unread,
Jun 6, 2018, 12:51:34 AM6/6/18
to Xtend Programming Language

Michael Bischoff

unread,
Jun 6, 2018, 1:11:39 PM6/6/18
to Xtend Programming Language
Hi,
thanks a lot for the info.

I will ignore the warning right now and hope it's still just a warning with Java 11.

Best regards,
    Michael

Michael Bischoff

unread,
Jun 6, 2018, 1:24:35 PM6/6/18
to Xtend Programming Language
Hi,
there may be issues with Java 11...

state that cglib will not be upgraded to be Java 11 compatible. This may in turn have some impact on Java 11 compatibility for guice.

Best regards,
    Michael




Karsten Thoms

unread,
Jun 6, 2018, 1:35:33 PM6/6/18
to xtend...@googlegroups.com
Could be. We are not yet working on Java 11 support, but will definetely do. Is on our list for 2.15.

Reply all
Reply to author
Forward
0 new messages