java.lang.IllegalAccessError: class vm.share.UnsafeAccess (in unnamed module @0x4cc0edeb) cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @0x4cc0edeb

JDK Bug System | Joseph Provino | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [2016-08-18T02:14:19.19] # ERROR: Test caught an exception: [2016-08-18T02:14:19.20] # ERROR: java.lang.IllegalAccessError: class vm.share.UnsafeAccess (in unnamed module @0x4cc0edeb) cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @0x4cc0edeb [2016-08-18T02:14:19.20] # ERROR: at vm.share.UnsafeAccess.<clinit>(UnsafeAccess.java:17) [2016-08-18T02:14:19.20] # ERROR: at vm.mlvm.anonloader.func.classNameInStackTrace.Test.run(Test.java:16) [2016-08-18T02:14:19.20] # ERROR: at vm.mlvm.share.MlvmTestExecutor.runMlvmTestInstance(MlvmTestExecutor.java:361) [2016-08-18T02:14:19.20] # ERROR: at vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:305) [2016-08-18T02:14:19.20] # ERROR: at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:222) [2016-08-18T02:14:19.20] # ERROR: at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:164) [2016-08-18T02:14:19.20] # ERROR: at vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:135) [2016-08-18T02:14:19.20] # ERROR: at vm.mlvm.share.MlvmTest.launch(MlvmTest.java:312) [2016-08-18T02:14:19.20] # ERROR: at vm.mlvm.anonloader.func.classNameInStackTrace.Test.main(Test.java:34)

    JDK Bug System | 6 months ago | Joseph Provino
    java.lang.IllegalAccessError: class vm.share.UnsafeAccess (in unnamed module @0x4cc0edeb) cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @0x4cc0edeb

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      class vm.share.UnsafeAccess (in unnamed module @0x4cc0edeb) cannot access class jdk.internal.misc.Unsafe (in module java.base) because module java.base does not export jdk.internal.misc to unnamed module @0x4cc0edeb

      at vm.share.UnsafeAccess.<clinit>()
    2. vm.share
      UnsafeAccess.<clinit>
      1. vm.share.UnsafeAccess.<clinit>(UnsafeAccess.java:17)
      1 frame
    3. vm.mlvm.anonloader
      Test.run
      1. vm.mlvm.anonloader.func.classNameInStackTrace.Test.run(Test.java:16)
      1 frame
    4. vm.mlvm.share
      MlvmTest.launch
      1. vm.mlvm.share.MlvmTestExecutor.runMlvmTestInstance(MlvmTestExecutor.java:361)
      2. vm.mlvm.share.MlvmTestExecutor.runMlvmTest(MlvmTestExecutor.java:305)
      3. vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:222)
      4. vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:164)
      5. vm.mlvm.share.MlvmTestExecutor.launch(MlvmTestExecutor.java:135)
      6. vm.mlvm.share.MlvmTest.launch(MlvmTest.java:312)
      6 frames
    5. vm.mlvm.anonloader
      Test.main
      1. vm.mlvm.anonloader.func.classNameInStackTrace.Test.main(Test.java:34)
      1 frame