javac fails jacks test
==== 5.1.3-nan-1 narrowing from float NaN to int produces 0 FAILED
==== Contents of test case:
constant_expression T513nan1 {(int) Float.NaN == 0} {(int) -Float.NaN == 0}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 5.1.3-nan-1 FAILED
==== 5.1.3-nan-2 narrowing from double NaN to int produces 0 FAILED
==== Contents of test case:
constant_expression T513nan2 {(int) Double.NaN == 0} {(int) -Double.NaN == 0}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 5.1.3-nan-2 FAILED
==== 5.1.3-nan-1 narrowing from float NaN to int produces 0 FAILED
==== Contents of test case:
constant_expression T513nan1 {(int) Float.NaN == 0} {(int) -Float.NaN == 0}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 5.1.3-nan-1 FAILED
==== 5.1.3-nan-2 narrowing from double NaN to int produces 0 FAILED
==== Contents of test case:
constant_expression T513nan2 {(int) Double.NaN == 0} {(int) -Double.NaN == 0}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 5.1.3-nan-2 FAILED
- duplicates
-
JDK-4642803 Bug in implementation of f2i for NaN
- Closed
- relates to
-
JDK-4285579 Sparc/C2: -Xcomp does not convert float/double Nan to Integer 0
- Resolved
-
JDK-1229191 (math) Converting floating-point numbers to ints doesn't always work properly
- Closed
-
JDK-4175006 Math.round(Float.NaN) returns Integer.MAX_VALUE instead of 0
- Closed