-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0, 1.4.1, 1.4.2, 5.0
-
b08
-
generic
-
generic, solaris_8
The following test (jacks T513nan1) fails.
class T {
strictfp public static void main(final String[] args) {
float nan = Float.NaN;
if ((int) -nan != 0) throw new Error();
}
}
A similar bug exists for Double (T513nan2)
Name: agR10195 Date: 09/01/2002
Alexey Gibadullin, ###@###.###
A testcase has been added into testbase_nsk (since release 16) to verify
this bug and to execute it regularly. The test name is:
nsk/regression/b4642803
The current location of the testbase is
/net/sqesvr.sfbay/export/vsn/VM/testbase/testbase_nsk
======================================================================
The bug exit in 1.4.2 JVM the test fail on sparc nsk/regression/b4642803:
#
[2008-08-06T19:39:26.21] export CLASSPATH
[2008-08-06T19:39:26.21] export PERL
[2008-08-06T19:39:26.21] export PATH
[2008-08-06T19:39:26.21] export TESTLIST
[2008-08-06T19:39:26.21] export HOME
[2008-08-06T19:39:26.21] export DISPLAY
[2008-08-06T19:39:26.21] export LD_LIBRARY_PATH
[2008-08-06T19:39:26.21] TEST_DEST_DIR="b4642803"
[2008-08-06T19:39:27.57] # Actual: TEST_DEST_DIR=b4642803
[2008-08-06T19:39:27.57] TESTNAME="${test_case_name}"
[2008-08-06T19:39:27.57] # Actual: TESTNAME=b4642803
[2008-08-06T19:39:27.57] testName="nsk/regression//b4642803"
[2008-08-06T19:39:27.57] # Actual: testName=nsk/regression//b4642803
[2008-08-06T19:39:27.57] TESTDIR="${test_work_dir}"
[2008-08-06T19:39:27.57] # Actual: TESTDIR=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803
[2008-08-06T19:39:27.57] testWorkDir="${test_work_dir}/"
[2008-08-06T19:39:27.57] # Actual: testWorkDir=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/
[2008-08-06T19:39:27.57] export testWorkDir
[2008-08-06T19:39:27.57] tlogOutFile="${test_work_dir}/${test_name}.tlog"
[2008-08-06T19:39:27.57] # Actual: tlogOutFile=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/b4642803.tlog
[2008-08-06T19:39:27.57] testErrFile="${test_work_dir}/${test_name}.err"
[2008-08-06T19:39:27.58] # Actual: testErrFile=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/b4642803.err
[2008-08-06T19:39:27.58] EXECUTE_CLASS="${test_name}"
[2008-08-06T19:39:27.58] # Actual: EXECUTE_CLASS=b4642803
[2008-08-06T19:39:27.58] APPLICATION_TIMEOUT="${TIMEOUT}"
[2008-08-06T19:39:27.58] # Actual: APPLICATION_TIMEOUT=10
[2008-08-06T19:39:27.58] CLASSPATH="${test_work_dir}${PS}${CLASSPATH}"
[2008-08-06T19:39:27.58] # Actual: CLASSPATH=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803:/net/stt-13/export/home0/dtf/dtf_ws/suites/142_Suites//vm/src/classes::/export/JDK/j2sdk1.4.2_17/lib/tools.jar:/net/vice.russia/export/stt/newroot/dtf/dtf_ws/suites/142_Suites/share/harness/tonga/tonga3.0.jar:/net/vice.russia/export/stt/newroot/dtf/dtf_ws/suites/142_Suites/share/harness/javatest/javatest.jar
[2008-08-06T19:39:27.58] export CLASSPATH
[2008-08-06T19:39:27.58] ${JAVAC} ${JAVAC_OPTS} -d ${test_work_dir} ${test_work_dir}/b4642803.java
[2008-08-06T19:39:27.58] # Actual: /export/JDK/j2sdk1.4.2_17/bin/javac -d /net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803 /net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/b4642803.java
[2008-08-06T19:39:27.58] ${JAVA} ${JAVA_OPTS} ${EXECUTE_CLASS} ${TEST_ARGS}
[2008-08-06T19:39:30.59] # Actual: /export/JDK/j2sdk1.4.2_17/bin/java b4642803
[2008-08-06T19:39:30.59] Checking float type.
[2008-08-06T19:39:30.98] Float result = -2147483648 (hex: 80000000).
[2008-08-06T19:39:30.98] FAILURE Float.
[2008-08-06T19:39:30.98] (int) -Float.NaN must be zero.
[2008-08-06T19:39:30.98]
[2008-08-06T19:39:30.98] Checking double type.
[2008-08-06T19:39:30.98] Double result = -2147483648 (hex: 80000000).
[2008-08-06T19:39:30.98] FAILURE Double.
[2008-08-06T19:39:30.98] (int) -Double.NaN must be zero.
[2008-08-06T19:39:30.98]
[2008-08-06T19:39:30.98] TEST FAILED.
[2008-08-06T19:39:30.98] # Test level exit status: 97
[2008-08-06T19:39:32.00]
http://vice.russia/gtee/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/b4642803.log
class T {
strictfp public static void main(final String[] args) {
float nan = Float.NaN;
if ((int) -nan != 0) throw new Error();
}
}
A similar bug exists for Double (T513nan2)
Name: agR10195 Date: 09/01/2002
Alexey Gibadullin, ###@###.###
A testcase has been added into testbase_nsk (since release 16) to verify
this bug and to execute it regularly. The test name is:
nsk/regression/b4642803
The current location of the testbase is
/net/sqesvr.sfbay/export/vsn/VM/testbase/testbase_nsk
======================================================================
The bug exit in 1.4.2 JVM the test fail on sparc nsk/regression/b4642803:
#
[2008-08-06T19:39:26.21] export CLASSPATH
[2008-08-06T19:39:26.21] export PERL
[2008-08-06T19:39:26.21] export PATH
[2008-08-06T19:39:26.21] export TESTLIST
[2008-08-06T19:39:26.21] export HOME
[2008-08-06T19:39:26.21] export DISPLAY
[2008-08-06T19:39:26.21] export LD_LIBRARY_PATH
[2008-08-06T19:39:26.21] TEST_DEST_DIR="b4642803"
[2008-08-06T19:39:27.57] # Actual: TEST_DEST_DIR=b4642803
[2008-08-06T19:39:27.57] TESTNAME="${test_case_name}"
[2008-08-06T19:39:27.57] # Actual: TESTNAME=b4642803
[2008-08-06T19:39:27.57] testName="nsk/regression//b4642803"
[2008-08-06T19:39:27.57] # Actual: testName=nsk/regression//b4642803
[2008-08-06T19:39:27.57] TESTDIR="${test_work_dir}"
[2008-08-06T19:39:27.57] # Actual: TESTDIR=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803
[2008-08-06T19:39:27.57] testWorkDir="${test_work_dir}/"
[2008-08-06T19:39:27.57] # Actual: testWorkDir=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/
[2008-08-06T19:39:27.57] export testWorkDir
[2008-08-06T19:39:27.57] tlogOutFile="${test_work_dir}/${test_name}.tlog"
[2008-08-06T19:39:27.57] # Actual: tlogOutFile=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/b4642803.tlog
[2008-08-06T19:39:27.57] testErrFile="${test_work_dir}/${test_name}.err"
[2008-08-06T19:39:27.58] # Actual: testErrFile=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/b4642803.err
[2008-08-06T19:39:27.58] EXECUTE_CLASS="${test_name}"
[2008-08-06T19:39:27.58] # Actual: EXECUTE_CLASS=b4642803
[2008-08-06T19:39:27.58] APPLICATION_TIMEOUT="${TIMEOUT}"
[2008-08-06T19:39:27.58] # Actual: APPLICATION_TIMEOUT=10
[2008-08-06T19:39:27.58] CLASSPATH="${test_work_dir}${PS}${CLASSPATH}"
[2008-08-06T19:39:27.58] # Actual: CLASSPATH=/net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803:/net/stt-13/export/home0/dtf/dtf_ws/suites/142_Suites//vm/src/classes::/export/JDK/j2sdk1.4.2_17/lib/tools.jar:/net/vice.russia/export/stt/newroot/dtf/dtf_ws/suites/142_Suites/share/harness/tonga/tonga3.0.jar:/net/vice.russia/export/stt/newroot/dtf/dtf_ws/suites/142_Suites/share/harness/javatest/javatest.jar
[2008-08-06T19:39:27.58] export CLASSPATH
[2008-08-06T19:39:27.58] ${JAVAC} ${JAVAC_OPTS} -d ${test_work_dir} ${test_work_dir}/b4642803.java
[2008-08-06T19:39:27.58] # Actual: /export/JDK/j2sdk1.4.2_17/bin/javac -d /net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803 /net/stt-13/export/stt/gtee/global/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/b4642803.java
[2008-08-06T19:39:27.58] ${JAVA} ${JAVA_OPTS} ${EXECUTE_CLASS} ${TEST_ARGS}
[2008-08-06T19:39:30.59] # Actual: /export/JDK/j2sdk1.4.2_17/bin/java b4642803
[2008-08-06T19:39:30.59] Checking float type.
[2008-08-06T19:39:30.98] Float result = -2147483648 (hex: 80000000).
[2008-08-06T19:39:30.98] FAILURE Float.
[2008-08-06T19:39:30.98] (int) -Float.NaN must be zero.
[2008-08-06T19:39:30.98]
[2008-08-06T19:39:30.98] Checking double type.
[2008-08-06T19:39:30.98] Double result = -2147483648 (hex: 80000000).
[2008-08-06T19:39:30.98] FAILURE Double.
[2008-08-06T19:39:30.98] (int) -Double.NaN must be zero.
[2008-08-06T19:39:30.98]
[2008-08-06T19:39:30.98] TEST FAILED.
[2008-08-06T19:39:30.98] # Test level exit status: 97
[2008-08-06T19:39:32.00]
http://vice.russia/gtee/1.4.2_17/b06/142_VM/32/vm/solaris-sparc/vm-solaris-sparc_11B9400185A2008-08-05-21-53-24/stt-robot.SunOS.sparc/b4642803/b4642803.log
- duplicates
-
JDK-4686820 narrowing from float -NaN to int should produce constant 0
- Closed