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

com/sun/jdi/ArrayLengthDumpTest.java fails with ArrayIndexOutOfBoundsException when running in CDS mode

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:

      Description

      The com/sun/jdi/ArrayLengthDumpTest.java test fails with ArrayIndexOutOfBoundsException when running on a JDK binary with existing CDS archive:

      java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
      at lib.jdb.Jdb$OutputHandler.get(Jdb.java:363)
      at lib.jdb.Jdb.waitForPrompt(Jdb.java:247)
      at lib.jdb.Jdb.command(Jdb.java:288)
      at ArrayLengthDumpTest.runCases(ArrayLengthDumpTest.java:96)
      at lib.jdb.JdbTest.run(JdbTest.java:50)
      at ArrayLengthDumpTest.main(ArrayLengthDumpTest.java:82)
      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:566)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:834)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jiangli Jiangli Zhou
                Reporter:
                jiangli Jiangli Zhou
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: