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

REGR: 4 tests from api/java_text/DateFormat/ and api/java_text/SimpleDateFormat/ fails with -esa key

XMLWordPrintable

    • b52
    • generic
    • generic
    • Verified

      REGRESSION:

      OS: Solaris9 (sparc), linux(i586)
      JAVA: 6.0 b48, b49 FAILS, b47 PASS
      Options: -esa
      JCK: 6.0 b06

      4 tests failed:

      api/java_text/DateFormat/index.html#GetInstance[DateFormat0031]
      api/java_text/DateFormat/index.html#GetInstance[DateFormat0034]
      api/java_text/DateFormat/index.html#GetInstance[DateFormat0037]
      api/java_text/SimpleDateFormat/index.html#Ctor[SimpleDateFormat0008]

      java source of SimpleDateFormat:
      ......
      private void initializeCalendar(Locale loc) {
      if (calendar == null) {
      assert loc != null;
      ......

      When system assertions is enabled (-enablesystemassertions) and locale (loc) is null method should throw NullPointer or Illegal argument exception (according to JCK test expectation, API spec doesnt specify exception), but java.lang.AssertionError exception is thrown.

            naoto Naoto Sato
            dtoporovsunw Denis Toporov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: