Hi Stefan, I suppose you are using the JDK9 Jake build (http://hg.openjdk.java.net/jigsaw/jake/) which prohibits AccessibleObject.setAccessible even on types in exported packages, the "exports private" needs to be used to allow access to non public types, see http://mail.openjdk.java.net/pipermail/jpms-spec-experts/2016-September/000390.html. From the stack trace it seems that the module “java.corba” is not yet fixed. — Tomas
http://mail.openjdk.java.net/pipermail/jpms-spec-experts/2016-September/000390.html > On 23 Oct 2016, at 15:53, Stefan Bodewig <bode...@apache.org> wrote: > > Hi Rory, > > I've tried "JDK9 with Project Jigsaw b140" but to be honest I have no > idea what difference to expect between JDK9b140 and this one. > > We've got new test errors in Ant with Project Jigsaw b140 that haven't > been present in b136 (which may have been "just JDK9"). When running > rmic for IIOP we get > > error: An error has occurred in the compiler; please file a bug report > (http://bugreport.java.com/bugreport/). > java.lang.ExceptionInInitializerError > at jdk.rmic@9-ea/sun.rmi.rmic.iiop.Type.setRepositoryID(Type.java:999) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.CompoundType.initialize(CompoundType.java:790) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.SpecialClassType.<init>(SpecialClassType.java:160) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.SpecialClassType.forSpecial(SpecialClassType.java:95) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.CompoundType.makeType(CompoundType.java:906) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.ClassType.initParents(ClassType.java:203) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.ImplementationType.initialize(ImplementationType.java:162) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.ImplementationType.forImplementation(ImplementationType.java:98) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.StubGenerator.getTopType(StubGenerator.java:155) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.Generator.generate(Generator.java:274) > at > jdk.rmic@9-ea/sun.rmi.rmic.iiop.StubGenerator.generate(StubGenerator.java:101) > at jdk.rmic@9-ea/sun.rmi.rmic.Main.doCompile(Main.java:555) > at jdk.rmic@9-ea/sun.rmi.rmic.Main.compile(Main.java:173) > at jdk.rmic@9-ea/sun.rmi.rmic.Main.main(Main.java:795) > Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make > private static native boolean > java.io.ObjectStreamClass.hasStaticInitializer(java.lang.Class) accessible: > module java.base does not "exports private java.io" to module java.corba > at > java.base/jdk.internal.reflect.Reflection.throwInaccessibleObjectException(Reflection.java:414) > at > java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:198) > at > java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:192) > at java.base/java.lang.reflect.Method.setAccessible(Method.java:186) > at > java.corba@9-ea/com.sun.corba.se.impl.io.ObjectStreamClass.hasStaticInitializer(ObjectStreamClass.java:1571) > at > java.corba@9-ea/com.sun.corba.se.impl.io.ObjectStreamClass._computeSerialVersionUID(ObjectStreamClass.java:1148) > at > java.corba@9-ea/com.sun.corba.se.impl.io.ObjectStreamClass.access$300(ObjectStreamClass.java:78) > at > java.corba@9-ea/com.sun.corba.se.impl.io.ObjectStreamClass$3.run(ObjectStreamClass.java:540) > at java.base/java.security.AccessController.doPrivileged(Native Method) > at > java.corba@9-ea/com.sun.corba.se.impl.io.ObjectStreamClass.init(ObjectStreamClass.java:519) > at > java.corba@9-ea/com.sun.corba.se.impl.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:171) > at > java.corba@9-ea/com.sun.corba.se.impl.io.ObjectStreamClass.lookup(ObjectStreamClass.java:104) > at > java.corba@9-ea/com.sun.corba.se.impl.io.ObjectStreamClass.getActualSerialVersionUID(ObjectStreamClass.java:225) > at > java.corba@9-ea/com.sun.corba.se.impl.util.RepositoryId.<clinit>(RepositoryId.java:166) > ... 14 more > > same for IDL. > > A quick search on the bug tracker didn't show any matching bugs, but > maybe I'm not looking in the right place. I wanted to consult with you > before pestering core-libs-dev (which likely is the wrong place anyway). > > Cheers > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org > For additional commands, e-mail: dev-h...@ant.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ant.apache.org For additional commands, e-mail: dev-h...@ant.apache.org