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

JCK: api/java_text/DecimalFormat/index.html#SetGet fails on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2
    • None
    • 1.4.0
    • core-libs
    • x86
    • windows_2000

    Description



      Name: skR10017 Date: 12/22/2000



      The following JCK1.3 test fails on Windows in -server -Xcomp mode:


      Failing Test:
      =============
       api/java_text/DecimalFormat/index.html#SetGet

      JCK:
      ===
      JCK1.3

      Test source location:
      ====================
      /net/jdk/export/disk8/local.java/jck1.3/JCK-runtime-13fcs/tests/api/java_text/DecimalFormat/SetGetTests.java

      Platforms:
      =============
      Windows 2000

      JDK, switches Info:
      ===================
      % java -server -Xcomp -version
      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b44)
      Java HotSpot(TM) Server VM (build 1.4beta-B44, compiled mode)

      How to reproduce:
      ====================
      To reproduce the bug, run script below (You may need to set JCK and JAVA_HOME).
      Map your H drive to \\jdk\local-java
      ---------------------------------------------------------------------------------
      #!/bin/sh
      JAVA_HOME="H:/jdk1.4.0/win32"
      JCK="H:/jck1.3/JCK-runtime-13fcs"
      CLASSPATH="$JCK/classes;$JCK/javatest.jar"
      export CLASSPATH
      executeClass="javasoft.sqe.tests.api.java.text.DecimalFormat.SetGetTests"

      $JAVA_HOME/bin/java -server -Xcomp -version
      $JAVA_HOME/bin/java -server -Xcomp -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy ${executeClass}
      RESULT="$?"
      if [ $RESULT = 95 ]; then
       echo Test passed
      elif [ $RESULT = 97 ]; then
       echo Test failed
      else
       echo Result is $RESULT
      fi
      ---------------------------------------------------------------------------------

      Test output:
      ====================

      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b44)
      Java HotSpot(TM) Server VM (build 1.4beta-B44, compiled mode)
      DecimalFormat0009: Passed. OKAY
      DecimalFormat1001: Passed. OKAY
      Method int getGroupingSize() returns incorrect value
        expected value: 0
        returned value: 0
      Method int getGroupingSize() returns incorrect value
        expected value: 1
        returned value: 1
      Method int getGroupingSize() returns incorrect value
        expected value: 46
        returned value: 46
      Method int getGroupingSize() returns incorrect value
        expected value: 126
        returned value: 126
      Method int getGroupingSize() returns incorrect value
        expected value: 127
        returned value: 127
      Method int getGroupingSize() returns incorrect value
        expected value: -128
        returned value: -128
      Method int getGroupingSize() returns incorrect value
        expected value: 46
        returned value: 46
      Method int getGroupingSize() returns incorrect value
        expected value: -2
        returned value: -2
      Method int getGroupingSize() returns incorrect value
        expected value: -1
        returned value: -1
      DecimalFormat0010: Failed. public int getGroupingSize()
      DecimalFormat0011: Passed. OKAY
      DecimalFormat0012: Passed. OKAY
      DecimalFormat1002: Passed. OKAY
      DecimalFormat0013: Passed. OKAY
      DecimalFormat0014: Passed. OKAY
      DecimalFormat1003: Passed. OKAY
      DecimalFormat0015: Passed. OKAY
      DecimalFormat0016: Passed. OKAY
      DecimalFormat1004: Passed. OKAY
      DecimalFormat0017: Passed. OKAY
      DecimalFormat0018: Passed. OKAY
      DecimalFormat1005: Passed. OKAY
      DecimalFormat0019: Passed. OKAY
      DecimalFormat0020: Passed. OKAY
      DecimalFormat0021: Passed. OKAY
      STATUS:Failed. tests: 18; passed: 17; failed: 1; first test case failure: DecimalFormat0010



      Additional JCK related info:
      ============================
      URL to find JCK test owners: http://javaweb.eng/jck/usr/owners.jto

      Attachments

        Activity

          People

            nlindenbsunw Norbert Lindenberg (Inactive)
            kotlsunw Kotl Kotl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: