Re: NoClassDefFoundError: Could not initialize, class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-20 Thread Dawid Weiss
Yes, the assignment version works on 1.8, 1.9, but it doesn't work on J9 (-XX:+IgnoreUnrecognizedVMOptions isn't implemented). I do have a java version check and conditional logic implemented in the bootstrap script, Alan, I just wanted to point out the issue, I'm not complaining ;) Dawid On

Re: NoClassDefFoundError: Could not initialize,class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-19 Thread Alan Bateman
On 19/09/2016 12:21, Dawid Weiss wrote: : jdk1.8-ibm\bin\java -XX:+IgnoreUnrecognizedVMOptions --add-modules jdk.xml.bind,java.activation -version JVMJ9VM007E Command-line option unrecognised: --add-modules Error: Could not create the Java Virtual Machine. Error: A fatal exception has

Re: NoClassDefFoundError: Could not initialize, class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-19 Thread Dawid Weiss
> If you specify -XX:+IgnoreUnrecognizedVMOptions then JDK 8/older will ignore > the JDK 9 options that it doesn't recognize. But this only applies to -XX options, doesn't it? I can't quite use the gnu-style options with the above because how would it know what is an option and what is part of

RE: NoClassDefFoundError: Could not initialize, class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-19 Thread Stephen Felts
...@gmail.com] Sent: Monday, September 19, 2016 1:02 PM To: Remi Forax Cc: jigsaw-dev Subject: Re: NoClassDefFoundError: Could not initialize, class com.google.inject.internal.cglib.core.$ReflectUtils   Exactly. I reported the problem having the --add-exports-private option in the back of my mind

Re: NoClassDefFoundError: Could not initialize, class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-19 Thread Dawid Weiss
.bate...@oracle.com> >> À: "Dawid Weiss" <dawid.we...@gmail.com> >> Cc: "jigsaw-dev" <jigsaw-dev@openjdk.java.net> >> Envoyé: Lundi 19 Septembre 2016 14:47:58 >> Objet: Re: NoClassDefFoundError: Could not ini

Re: NoClassDefFoundError: Could not initialize,class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-19 Thread Alan Bateman
On 19/09/2016 10:01, Dawid Weiss wrote: Exactly. I reported the problem having the --add-exports-private option in the back of my mind (saw it in a recent thread somewhere), but what I'd be more interested in what Rémi asked about. As a separate note, having multiple non-compatible options

Re: NoClassDefFoundError: Could not initialize,class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-19 Thread Remi Forax
t; <jigsaw-dev@openjdk.java.net> > Envoyé: Lundi 19 Septembre 2016 14:47:58 > Objet: Re: NoClassDefFoundError: Could not initialize,class > com.google.inject.internal.cglib.core.$ReflectUtils > On 19/09/2016 05:35, Dawid Weiss wrote: > >> Yes, it prints: >>

Re: NoClassDefFoundError: Could not initialize,class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-19 Thread Alan Bateman
On 19/09/2016 05:35, Dawid Weiss wrote: Yes, it prints: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible:

Re: NoClassDefFoundError: Could not initialize, class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-19 Thread Dawid Weiss
Yes, it prints: java.lang.reflect.InaccessibleObjectException: Unable to make protected final java.lang.Class java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) throws java.lang.ClassFormatError accessible: module java.base does not "exports private

Re: NoClassDefFoundError: Could not initialize,class com.google.inject.internal.cglib.core.$ReflectUtils

2016-09-19 Thread Alan Bateman
On 19/09/2016 00:12, Dawid Weiss wrote: Guice 4.1.0 throws an exception from within the embedded cglib with this release: java -version java version "9-ea" Java(TM) SE Runtime Environment (build 9-ea+135-jigsaw-nightly-h5500-20160914) Java HotSpot(TM) 64-Bit Server VM (build