-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.2
-
generic
-
solaris_9
Filed By : J2SE-SQA [###@###.###
JDK : 1.4.2 b02
JCK : jck1.4, jck14a-b03
Platform[s] : sparc
switch/Mode : c1
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test :
api/java_text/DecimalFormat/index.html
Test source location:
=====================
/net/jtgb4u4c.sfbay/export/sail16/JCK/jck14/JCK-runtime-14/tests/api/java_text/DecimalFormat/FormatTests.java
jtr file location:
==================
file:///net/jtgb4u4c/export/sail16/results/mantis/b02/jck14/sparc/s9_client_jtg-s116/workDir/api/java_text/DecimalFormat/index_Format.jtr
How to reproduce:
====================
run attached script
DecimalFormat.ksh
--------Script START---------------------
#!/bin/ksh
SWITCH=${1+$@}
#JDK=/net/jdk/export/disk8/local.java/jdk1.4.1
JDK=/net/koori.sfbay/p/jdk01/jdk/1.4.2/beta/b02/binaries/solaris-sparc
TESTBASE=/net/jdk/export/disk8/local.java/jck1.4
JCK=${TESTBASE}/JCK-runtime-14
executeClass="javasoft.sqe.tests.api.java.text.DecimalFormat.FormatTests"
executeClassArgs="-TestCaseID DecimalFormat0138"
headless=false
#executeContextArgs is used for vm testing.
executeContextArgs=
case `uname -s` in
SunOS)
ARCH=`uname -p`
case $ARCH in
sparc)
sharedJDK=$JDK/solaris-sparc
;;
i386)
sharedJDK=$JDK/solaris-i586
;;
esac
;;
Linux)
sharedJDK=$JDK/linux-i586
ARCH=linux
;;
esac
CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}
if `echo $SWITCH|grep "\-d64" >/dev/null`; then
sharedJDK=$JDK/solaris-sparcv9
LD_LIBRARY_PATH=${JCK}/lib/sparcv9
else
LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
fi
PATH=$JDK/bin:$sharedJDK/bin:$PATH
export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH
echo
java ${SWITCH} -version
echo
((x=0))
while (( $x != 1 )) do
echo testing $x
java ${SWITCH} -verify -Xfuture -DDISPLAY="" -Djava.awt.headless=$headless -Djava.security.policy=${JCK}/lib/jck.policy -Djava.security.auth.policy=${JCK}/lib/jck.auth.policy -Djava.security.auth.login.config=${JCK}/lib/jck.auth.login.config -Djava.rmi.activation.port=${executeClass} ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}
if [[ $? == "95" ]]; then
echo pass
else
echo failed
fi
(( x = $x + 1 ))
done
--------Script END----------------------
Test output:
=============
jtg-s116 % DecimalFormat.ksh
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b02)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b02, mixed mode)
testing 0
DecimalFormat0138: Failed. public StringBuffer format(double n, StringBuffer toAppendTo, FieldPosition fp)
method format(double n, StringBuffer str, FieldPosition fp) fails
getMultiplier() = 2147483646 toPattern()= #,##0.###
n = 1.0
format(n) = 2,474,836,460
expected = 2.475
STATUS:Failed.tests: 1; failed: 1; first test case failure: DecimalFormat0138
failed
Specific Machine Info:
=====================
SunOS jtg-s116 5.9 Generic sun4u sparc SUNW,Ultra-2
SunOS jtg-s131 5.9 Generic sun4u sparc SUNW,Sun-Blade-1000
JDK : 1.4.2 b02
JCK : jck1.4, jck14a-b03
Platform[s] : sparc
switch/Mode : c1
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test :
api/java_text/DecimalFormat/index.html
Test source location:
=====================
/net/jtgb4u4c.sfbay/export/sail16/JCK/jck14/JCK-runtime-14/tests/api/java_text/DecimalFormat/FormatTests.java
jtr file location:
==================
file:///net/jtgb4u4c/export/sail16/results/mantis/b02/jck14/sparc/s9_client_jtg-s116/workDir/api/java_text/DecimalFormat/index_Format.jtr
How to reproduce:
====================
run attached script
DecimalFormat.ksh
--------Script START---------------------
#!/bin/ksh
SWITCH=${1+$@}
#JDK=/net/jdk/export/disk8/local.java/jdk1.4.1
JDK=/net/koori.sfbay/p/jdk01/jdk/1.4.2/beta/b02/binaries/solaris-sparc
TESTBASE=/net/jdk/export/disk8/local.java/jck1.4
JCK=${TESTBASE}/JCK-runtime-14
executeClass="javasoft.sqe.tests.api.java.text.DecimalFormat.FormatTests"
executeClassArgs="-TestCaseID DecimalFormat0138"
headless=false
#executeContextArgs is used for vm testing.
executeContextArgs=
case `uname -s` in
SunOS)
ARCH=`uname -p`
case $ARCH in
sparc)
sharedJDK=$JDK/solaris-sparc
;;
i386)
sharedJDK=$JDK/solaris-i586
;;
esac
;;
Linux)
sharedJDK=$JDK/linux-i586
ARCH=linux
;;
esac
CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
DISPLAY=${DISPLAY-$HOST:0.0}
if `echo $SWITCH|grep "\-d64" >/dev/null`; then
sharedJDK=$JDK/solaris-sparcv9
LD_LIBRARY_PATH=${JCK}/lib/sparcv9
else
LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
fi
PATH=$JDK/bin:$sharedJDK/bin:$PATH
export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH
echo
java ${SWITCH} -version
echo
((x=0))
while (( $x != 1 )) do
echo testing $x
java ${SWITCH} -verify -Xfuture -DDISPLAY="" -Djava.awt.headless=$headless -Djava.security.policy=${JCK}/lib/jck.policy -Djava.security.auth.policy=${JCK}/lib/jck.auth.policy -Djava.security.auth.login.config=${JCK}/lib/jck.auth.login.config -Djava.rmi.activation.port=${executeClass} ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}
if [[ $? == "95" ]]; then
echo pass
else
echo failed
fi
(( x = $x + 1 ))
done
--------Script END----------------------
Test output:
=============
jtg-s116 % DecimalFormat.ksh
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b02)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b02, mixed mode)
testing 0
DecimalFormat0138: Failed. public StringBuffer format(double n, StringBuffer toAppendTo, FieldPosition fp)
method format(double n, StringBuffer str, FieldPosition fp) fails
getMultiplier() = 2147483646 toPattern()= #,##0.###
n = 1.0
format(n) = 2,474,836,460
expected = 2.475
STATUS:Failed.tests: 1; failed: 1; first test case failure: DecimalFormat0138
failed
Specific Machine Info:
=====================
SunOS jtg-s116 5.9 Generic sun4u sparc SUNW,Ultra-2
SunOS jtg-s131 5.9 Generic sun4u sparc SUNW,Sun-Blade-1000
- duplicates
-
JDK-4742032 JCK: api/java_text/DecimalFormat/index.html#Format fails.
-
- Closed
-