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

NPG: Test VMMismatchException001 gets an java.lang.ArrayIndexOutOfBoundsException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The NSK test

      nsk/jdi/VMMismatchException/VMMismatchException001

      fails because something isn't returned by the VM that it expects:

      # ERROR: Unexpected exception: java.lang.ArrayIndexOutOfBoundsException: 0
      java.lang.ArrayIndexOutOfBoundsException: 0
              at java.util.Arrays$ArrayList.get(Arrays.java:2875)
              at nsk.jdi.VMMismatchException.VMMismatchException001.VMMismatchException
      001.doThreadReferenceStop(VMMismatchException001.java:398)
              at nsk.jdi.VMMismatchException.VMMismatchException001.VMMismatchException
      001.checkThreadReferenceStop(VMMismatchException001.java:391)
              at nsk.jdi.VMMismatchException.VMMismatchException001.VMMismatchException
      001.main(VMMismatchException001.java:812)
      The failing test holds a reference to a thread with only static java method frames. The test has an instance of java.lang.Exception in a static field of one of the classes in the frames of the thread. However, the class is never found by the FollowReferences call.

      Before the perm gen removal, this class was found when the context class loader of the thread was traversed. The class would be found in the ClassLoader.classes Vector. This vector is not populated anymore, so the class is not found.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stefank Stefan Karlsson
              Reporter:
              coleenp Coleen Phillimore
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: