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

Reduce number of exceptions created when calling Lookup::canBeCached

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • None
    • core-libs

      Running any jjs script with -Xlog:exceptions, e.g., jjs -J-Xlog:exceptions hello.js[1], shows a number of suspect IAEs that indicate there's a missing module export, somewhere:

      [0.990s][info][exceptions] Exception <a 'java/lang/IllegalAccessException'{0x00000005cb15a2b8}: symbolic reference class is not accessible: class jdk.nashorn.internal.objects.NativeArray, from public Lookup>
       thrown in interpreter method <{method} {0x00007f519879da38} 'canBeCached' '(BLjava/lang/Class;Ljava/lang/invoke/MemberName;)Z' in 'java/lang/invoke/MethodHandles$Lookup'>
       at bci 122 for thread 0x00007f51d0011000 (main)

      [1] hello.js:
      print("hello");
      exit(0);

            redestad Claes Redestad
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: