Package manager reflection warnings appear to become errors at JDK 16

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Package manager reflection warnings appear to become errors at JDK 16

Michael Hall
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 "opens java.lang" to unnamed module @7748410a
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
        at java.base/java.lang.reflect.Method.checkCanSetAccessible(Unknown Source)
        at java.base/java.lang.reflect.Method.setAccessible(Unknown Source)
        at weka.core.WekaPackageClassLoaderManager.injectClasses(WekaPackageClassLoaderManager.java:792)
        at weka.core.WekaPackageClassLoaderManager.injectAllClassesInFromStream(WekaPackageClassLoaderManager.java:690)
        at weka.core.WekaPackageClassLoaderManager.injectMTJCoreClasses(WekaPackageClassLoaderManager.java:118)
        at weka.core.WekaPackageManager.<clinit>(WekaPackageManager.java:255)
        at org.cmdline.common.Initializer.initialize(Initializer.java:37)
        at org.cmdline.common.Initializer.getScheduler(Initializer.java:79)
        at org.cmdline.CommandLine.main(CommandLine.java:59)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at us.hall.hp.common.LoaderLaunchStub.invoke(LoaderLaunchStub.java:218)
        at us.hall.hp.common.LoaderLaunchStub.runStatic(LoaderLaunchStub.java:208)
        at us.hall.hp.common.LoaderLaunchStub.runMain(LoaderLaunchStub.java:200)
        at us.hall.hp.common.LoaderLaunchStub.launch(LoaderLaunchStub.java:188)
        at us.hall.hp.common.LoaderLaunchStub.main(LoaderLaunchStub.java:100)
_______________________________________________
Wekalist mailing list -- [hidden email]
Send posts to [hidden email]
To unsubscribe send an email to [hidden email]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html