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

JCK regression: getAvailableLocales doesn't include en, en_US

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      x86, sparc
    • OS:
      generic, linux, windows_2000
    • Verification:
      Verified

      Description



      Name: iaR10016 Date: 07/20/2001


      JDK : JDK1.4.0-beta-b72
      JCK : JCK1.3a, JCK1.4-b06
      Platform[s] : RedHat Linux 6.2, Windows 2000, Windows 98, Windows NT
      switch/Mode : -client -Xmixed
      JCK test owner : http://javaweb.eng/jck/usr/owners.jto
      Failing Test : api/java_text/Collator/index.html#GetInstance [TestCaseID Collator2009]
                       api/java_text/DateFormat/index.html#GetInstance [TestCaseID DateFormat2026]
                       api/java_util/Calendar/index.html#GetInstance [TestCaseID Calendar2048]
                       api/java_util/Locale/descriptions.html#misc [TestCaseID Locale2014]

      Test source location:
      =====================
      /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_text/Collator/GetInstanceTests.java
      /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_text/Collator/CollatorTest.java
      /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_text/DateFormat/GetInstanceTests.java
      /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_text/DateFormat/DateFormatTest.java
      /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_util/Calendar/GetInstanceTests.java
      /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_util/Calendar/CalendarTest.java
      /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/tests/api/java_util/Locale/miscTests.java


      jtr file location:
      ==================
      /net/jtgb4u4c.eng/export/sail16/results/merlin/b71/jck13a/linux/redhat6.2_single_gnome_client_linux-12/workDir/api/java_text/Collator/index_GetInstance.jtr
      /net/jtgb4u4c.eng/export/sail16/results/merlin/b71/jck13a/linux/redhat6.2_single_gnome_client_linux-12/workDir/api/java_text/DateFormat/index_GetInstance.jtr
      /net/jtgb4u4c.eng/export/sail16/results/merlin/b71/jck13a/linux/redhat6.2_single_gnome_client_linux-12/workDir/api/java_util/Calendar/index_GetInstance.jtr
      /net/jtgb4u4c.eng/export/sail16/results/merlin/b71/jck13a/linux/redhat6.2_single_gnome_client_linux-12/workDir/api/java_util/Locale/descriptions_misc.jtr

      How to reproduce:
      ====================
      Run the following script under RedHat Linux 6.2
      (probably, you need to change JCK and JAVA_HOME paths):
      --------Script START---------------------
      #!/bin/sh
      JAVA_HOME=/net/jdk/export/disk8/local.java/jdk1.4/linux-i386
      JCK=/net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a
      export CLASSPATH="$JCK/classes:$JCK/javatest.jar"
      executeClass="javasoft.sqe.tests.api.java.text.Collator.GetInstanceTests -TestCaseID Collator2009"
      $JAVA_HOME/bin/java -Xfuture ${executeClass}
      executeClass="javasoft.sqe.tests.api.java.text.DateFormat.GetInstanceTests -TestCaseID DateFormat2026"
      $JAVA_HOME/bin/java -Xfuture ${executeClass}
      executeClass="javasoft.sqe.tests.api.java.util.Calendar.GetInstanceTests -TestCaseID Calendar2048"
      $JAVA_HOME/bin/java -Xfuture ${executeClass}
      executeClass="javasoft.sqe.tests.api.java.util.Locale.miscTests -TestCaseID Locale2014"
      $JAVA_HOME/bin/java -Xfuture ${executeClass}
      ---------Script END----------------------

      Test output:
      =============
      Collator2009: Failed. public static Locale[] getAvailableLocales()
      Collator.getAvailableLocales() must contain the core locale en_US
      STATUS:Failed.tests: 1; failed: 1; first test case failure: Collator2009
      DateFormat2026: Failed. public static Locale[] getAvailableLocales()
      DateFormat.getAvailableLocales() must contain the core locale en_US
      STATUS:Failed.tests: 1; failed: 1; first test case failure: DateFormat2026
      Calendar2048: Failed. public static Locale[] getAvailableLocales()
      Calendar.getAvailableLocales() must contain the core locale en_
      STATUS:Failed.tests: 1; failed: 1; first test case failure: Calendar2048
      Locale2014: Failed. locale en is not contained in Locale.getAvailableLocales() result
      STATUS:Failed.tests: 1; failed: 1; first test case failure: Locale2014

      Specific Machine Info:
      =====================
      Hostname: linux-14
      OS: RedHat Linux 6.2

      Hostname: linux-2
      OS: Windows 2000

      ======================================================================


      Additional test failed on Sparc and x86 using JCK13a and JCK14 with JDK1.4-b72

        api/java_text/NumberFormat/descriptions.html#GetInstance


      takwing.cheung@Eng 2001-07-20

        Attachments

          Activity

            People

            • Assignee:
              nlindenbsunw Norbert Lindenberg (Inactive)
              Reporter:
              irasunw Ira Ira (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: