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

JCK122: 2 api/java_util/Date/descritpition.html/#Date11 and #setTime23

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.3.1
    • hotspot
    • sparc
    • generic

      The following 2 JCK122, api/java_util/Date/descritpition.html failed on sparc sol 2.6, 5.7, 5.8 using following switches

          -server
          -server -Xint
          -server -Xcomp
          -client
          -client -Xint
          -clinet -Xcomp


      ========================
      JCK tests

      1) api/java_util/Date/descriptions.html#Date11

      2) api/java_util/Date/descriptions.html#setTime23

      Source Location
       /net/ultraowl.eng/export/ultraowl2/JCK/JCK-122/JCK-runtime-api-122/tests/api/java_util/Date/


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

      Error Message

      1) descriptions.html#Date11
      ---------------------------
      ----------------------------------------------------------------
                     AssertionTest Report
      ----------------------------------------------------------------
       Method Name : public java.util.Date(long)
       Class Name : class java.util.Date
      ----------------------------------------------------------------
      --------------------------------------------------------------
       Index of factory objects : 0:1
       List of Assertion Failures:
        - result.getTime() == date
        - result.getTime() == date
       Test Status : Assertions failed: All Assertions Checked
      --------------------------------------------------------------
      --------------------------------------------------------------
       Index of factory objects : 0:3
       List of Assertion Failures:
        - result.getTime() == date
        - result.getTime() == date
       Test Status : Assertions failed: All Assertions Checked
      --------------------------------------------------------------
      --------------------------------------------------------------
       Index of factory objects : 0:4
       List of Assertion Failures:
        - result.getTime() == date
        - result.getTime() == date
       Test Status : Assertions failed: All Assertions Checked
      --------------------------------------------------------------


      2) api/java_util/Date/descriptions.html#setTime23
      -------------------------------------------------
      ----------------------------------------------------------------
                     AssertionTest Report
      ----------------------------------------------------------------
       Method Name : public void java.util.Date.setTime(long)
       Class Name : class java.util.Date
      ----------------------------------------------------------------
      --------------------------------------------------------------
       Index of factory objects : 0:1
       List of Assertion Failures:
        - OUT.getTime() == time
        - OUT.getTime() == time
       Test Status : Assertions failed: All Assertions Checked
      --------------------------------------------------------------
      --------------------------------------------------------------
       Index of factory objects : 0:3
       List of Assertion Failures:
        - OUT.getTime() == time
        - OUT.getTime() == time
       Test Status : Assertions failed: All Assertions Checked
      --------------------------------------------------------------
      --------------------------------------------------------------
       Index of factory objects : 0:4
       List of Assertion Failures:
        - OUT.getTime() == time
        - OUT.getTime() == time
       Test Status : Assertions failed: All Assertions Checked
      --------------------------------------------------------------
      --------------------------------------------------------------------


      ============================
      To Reporduce it

        Run the attched scripts
           Date11.ksh -client
           setTime23.ksh -client
        You may need to change JDK to point to the JDK on your system.

      Script Date11.ksh
      -----------------

      SWITCH=${1+$@}
      uname -np | read HOST ARCH
      JDK=/export/home/jtg-test/JH_JDK131_b08_JCK13_comipler/jdk1.3.1beta
      JDK=/export/home/jtg-test/JH_JDK131_b08_13a/jdk1.3.1beta

      TESTBASE=/net/ultraowl.eng/export/ultraowl2/JCK/JCK-122
      JCK=${TESTBASE}/JCK-runtime-api-122
      CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
      DISPLAY=${DISPLAY-$HOST:0.0}
      LD_LIBRARY_PATH=${JCK}/lib/${ARCH}

      executeClass=javasoft.sqe.tests.api.java.util.Date.Date11Tests
      #excludeCmd=""
      #executeClassArgs="-TestCaseID Timer0016"
      #executeContextArgs="-nativeCodeSupported true"
      #executeTestURL=""
      #executeWorkURL=""

      export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH

      echo
      $JDK/bin/java ${SWITCH} -version
      echo
      $JDK/bin/java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.p
      olicy ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${execut
      eTestURL} ${executeWorkURL}


      Script setTime23
      ----------------

      SWITCH=${1+$@}
      uname -np | read HOST ARCH
      #JDK=/export/home/jtg-test/JH_JDK131_b08_JCK13_comipler/jdk1.3.1beta
      JDK=/export/home/jtg-test/JH_JDK131_b08_JCK13/jdk1.3.1beta
      JDK=/export/home/jtg-test/JH_JDK131_b08_13a/jdk1.3.1beta


      TESTBASE=/net/ultraowl.eng/export/ultraowl2/JCK/JCK-122
      JCK=${TESTBASE}/JCK-runtime-api-122
      CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
      DISPLAY=${DISPLAY-$HOST:0.0}
      LD_LIBRARY_PATH=${JCK}/lib/${ARCH}

      executeClass=javasoft.sqe.tests.api.java.util.Date.setTime23Tests
      #excludeCmd=""
      #executeClassArgs="-TestCaseID Timer0016"
      #executeContextArgs="-nativeCodeSupported true"
      #executeTestURL=""
      #executeWorkURL=""

      export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH

      echo
      $JDK/bin/java ${SWITCH} -version
      echo
      $JDK/bin/java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.p
      olicy ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${execut
      eTestURL} ${executeWorkURL}

      ==========================
      System Info:

      Hostname: jtg-s118
      Hostid: 809e51dc
      Release: 5.7
      Kernel architecture: sun4u
      Application architecture: sparc
      Hardware provider: Sun_Microsystems
      Domain: javasoft.eng.sun.com
      Kernel version: SunOS 5.7 Generic 106541-11 March 2000
      ===========
      Status of processor 0 as of: 11/21/00 15:26:29
        Processor has been on-line since 10/10/00 10:56:39.
        The sparcv9 processor operates at 296 MHz,
              and has a sparcv9 floating point processor.
      Status of processor 1 as of: 11/21/00 15:26:29
        Processor has been on-line since 10/10/00 10:56:42.
        The sparcv9 processor operates at 296 MHz,
              and has a sparcv9 floating point processor.
      ===========
                             Solaris 7 11/99 s998s_u4wos_10 SPARC
                 Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
                                  Assembled 15 October 1999


      takwing.cheung@Eng 2000-11-21

            kbr Kenneth Russell (Inactive)
            tacheung Tak Wing Cheung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: