Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902441

ArrayIndexOutOfBoundsException from SimpleDateFormat from ProductInfo.java

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: jt6.0
    • Fix Version/s: jt6.0
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b03
    • Resolved In Build:
      b05

      Description

      Intermittent error from jdk jtreg test from ProductInfo::getDetailedVersion since jtharness 6.0/b03 (which is in jtreg 4.2/b14, and used for jdk test since jdk-13+10).

      Most likely, CODETOOLS-7902267 introduced issue, it uses java.time. SimpleDateFormat unthread-safe.

      The error happens before test really run, example .jtr:

      #section:Details
      ----------messages:(0/0)----------
      ----------Stack trace:(14/1002)----------
      java.lang.ArrayIndexOutOfBoundsException: 951
      at java.base/sun.util.calendar.BaseCalendar.getCalendarDateFromFixedDate(BaseCalendar.java:453)
      at java.base/java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2394)
      at java.base/java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2309)
      at java.base/java.util.Calendar.setTimeInMillis(Calendar.java:1834)
      at java.base/java.util.Calendar.setTime(Calendar.java:1800)
      at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:973)
      at java.base/java.text.SimpleDateFormat.format(SimpleDateFormat.java:966)
      at java.base/java.text.DateFormat.format(DateFormat.java:374)
      at com.sun.javatest.ProductInfo.getDetailedVersion(ProductInfo.java:85)
      at com.sun.javatest.Script.run(Script.java:196)
      at com.sun.javatest.DefaultTestRunner.runTest(DefaultTestRunner.java:175)
      at com.sun.javatest.DefaultTestRunner.access$100(DefaultTestRunner.java:43)
      at com.sun.javatest.DefaultTestRunner$1.run(DefaultTestRunner.java:68)
      result: Not run. Test running...


      test result: Error. Unexpected exception caught from test com/sun/jdi/ArrayRangeTest.java: java.lang.ArrayIndexOutOfBoundsException: 951

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dbessono Dmitry Bessonov
                Reporter:
                amlu Amy Lu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: