JDK-6314387 : JCK6.0: api/java_util/Date/index.html#misc fails, mustang
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows_2000
  • CPU: generic,x86
  • Submitted: 2005-08-22
  • Updated: 2012-03-23
  • Resolved: 2005-09-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b52Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
JCK            : jck6.0
J2SE           : FAIL - mustang b48
                 PASS - mustang b47
Platform[s]    : FAIL - solaris, linux
switch/Mode    : FAIL - default
JCK test owner : http://javaweb.sfbay/jcce/tcks/jck/docs/others/owners.jto

Failing Tests   : api/java_util/Date/index.html#misc

Test source location:
=====================
/net/cady/export/dtf/unified/knight-ws/suites/jck/jck6.0/JCK-runtime-60/tests/api/java_util/Date/miscTests.java

jtr file location:
==================
attached

How to reproduce:
==============================================
-----------------script starts ----------------
#!/bin/sh
JDK=/net/koori/onestop/jdk/1.6.0/promoted/all/b48/binaries/solaris-sparc
JCK=/net/jsqalab/export/testsuites/JCK/jck6.0/b06/JCK-runtime-60

LD=LIBRARY_PATH="$JCK/lib/SunOS.sparc:$JCK/lib/SunOS.sparc/jmx"
export LD_LIBRARY_PATH
CLASSPATH="$JCK/classes:$JCK/lib/javatest.jar"
POLICY="-Djava.security.policy=$JCK/lib/jck.policy"

TEST="javasoft.sqe.tests.api.java.util.Date.miscTests -TestCaseID ALL"
echo `cat $JCK/build.txt | grep JCK_VERSION` `cat $JCK/build.txt | grep JCK_BUILD`
$JDK/bin/java -showversion -cp $CLASSPATH $POLICY $TEST

-----------------script ends ----------------

Test output:
=============
JCK_VERSION=6.0 JCK_BUILD_ID=b06
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b48)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b48, mixed mode, sharing)
...
Date2013: Failed. toString() returns wrong result : Sun May 16 08:47:04 PST -292275055
Date2014: Failed. toGMTString() returns wrong result : 16 May -292275055 16:47:04 GMT
...
------Date2013------
expected result = "Sun Dec 02 08:47:04 PST 292269055
------Date2014------
expected result = 2 Dec 292269055 16:47:04 GMT
STATUS:Failed.test cases: 42; passed: 40; failed: 2; first test case failure: Date2013

Specific Machine Info:
==============================
$ uname -a
SunOS hiltonlv 5.10 Generic_118835-02 sun4u sparc SUNW,Ultra-60
*** (#1 of 1): 2005-08-22 16:46:24 PDT ###@###.###

Comments
EVALUATION Caused by 6274757 fix. localtime can't be calculated because of possible overflow.
27-08-2005