RFR [9] 8153737: Unsupported Module

Chris Hegarty chris.hegarty at oracle.com
Wed Apr 27 21:54:04 UTC 2016


Hi Rio,


> We are missing sun/reflect/ReflectionFactory$GetReflectionFactoryAction inner class
> 
> in jdk.unsupported module:
> 
> java.lang.NoClassDefFoundError: sun/reflect/ReflectionFactory$GetReflectionFactoryAction
>    at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base at 9-internal/BuiltinClassLoader.java:366)
>    at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base at 9-internal/ClassLoaders.java:184)
>    at java.lang.ClassLoader.loadClass(java.base at 9-internal/ClassLoader.java:419)
>    at org.jboss.marshalling.reflect.SerializableClass.<clinit>(SerializableClass.java:47)

GetReflectionFactoryAction is a convenience class for acquiring
the capability to instantiate reflective objects.  It’s code is:

As part of JEP 260, we retained the single getReflectionFactory 
accessor. You can replace your usage with the following:

 PrivilegedAction<ReflectionFactory> pa = new PrivilegedAction<ReflectionFactory>() {
           @Override
           public ReflectionFactory run() {
               return ReflectionFactory.getReflectionFactory();
           }
       };

-Chris.




More information about the core-libs-dev mailing list