Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8178776

FieldSetAccessibleTest.java fails with IllegalAccessError

    Details

      Description

      java/lang/Class/getDeclaredField/FieldSetAccessibleTest.java tests fails with the following exception:

      java.lang.IllegalAccessError: superclass access check failed: class sun.plugin2.applet.AWTAppletSecurityManager (in module jdk.plugin) cannot access class sun.awt.AWTSecurityManager (in module java.desktop) because module java.desktop does not export sun.awt to module jdk.plugin
      at java.base/java.lang.ClassLoader.defineClass2(Native Method)
      at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1075)
      at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:205)
      at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:730)
      at java.base/jdk.internal.loader.BuiltinClassLoader.findClassInModuleOrNull(BuiltinClassLoader.java:651)
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:576)
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:550)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:473)
      at java.base/java.lang.Class.getDeclaredFields0(Native Method)
      at java.base/java.lang.Class.privateGetDeclaredFields(Class.java:3014)
      at java.base/java.lang.Class.getDeclaredFields(Class.java:2218)
      at FieldSetAccessibleTest.testSetFieldsAccessible(FieldSetAccessibleTest.java:87)
      at FieldSetAccessibleTest.test(FieldSetAccessibleTest.java:127)
      at FieldSetAccessibleTest.test(FieldSetAccessibleTest.java:241)
      at FieldSetAccessibleTest.test(FieldSetAccessibleTest.java:197)
      at FieldSetAccessibleTest.run(FieldSetAccessibleTest.java:181)
      at FieldSetAccessibleTest$TestCase.run(FieldSetAccessibleTest.java:287)
      at FieldSetAccessibleTest.main(FieldSetAccessibleTest.java:172)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:563)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vdrozdov Victor Drozdov (Inactive)
                Reporter:
                asmotrak Artem Smotrakov
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: