Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2053872 | 1.4.1 | Azeem Jiva | P2 | Resolved | Fixed | hopper |
JDK-2053871 | 1.4.0_03 | Azeem Jiva | P2 | Resolved | Fixed | 03 |
Windows systems are not able to deal with a given long
which is namely: 9223372034707292160L.
Several thousand numbers below or above are fine.
The problem does not occur on Solaris. It seems to occur
on most 1.3 releases and on 1.4 on Windows.
The bug has been file against 1.3.1._03 and needs a fix there.
Please check the simple testcase:
public class LongCompTest {
public static void main(String[] args) {
System.out.println("\n--[2 Longs compare problem]--------------------");
long l1 = 9223372034707292160L;
long l2 = -9223372034707292160L;
System.out.println("MAX_LONG: " + Long.MAX_VALUE );
System.out.println("MIN_LONG: " + Long.MIN_VALUE );
System.out.println("l1: " + l1);
System.out.println("l2: " + l2);
System.out.println("When comparing l1 with l2 - the result is [" + (l1 == l2
)+"]...");
}
}
which is namely: 9223372034707292160L.
Several thousand numbers below or above are fine.
The problem does not occur on Solaris. It seems to occur
on most 1.3 releases and on 1.4 on Windows.
The bug has been file against 1.3.1._03 and needs a fix there.
Please check the simple testcase:
public class LongCompTest {
public static void main(String[] args) {
System.out.println("\n--[2 Longs compare problem]--------------------");
long l1 = 9223372034707292160L;
long l2 = -9223372034707292160L;
System.out.println("MAX_LONG: " + Long.MAX_VALUE );
System.out.println("MIN_LONG: " + Long.MIN_VALUE );
System.out.println("l1: " + l1);
System.out.println("l2: " + l2);
System.out.println("When comparing l1 with l2 - the result is [" + (l1 == l2
)+"]...");
}
}
- backported by
-
JDK-2053871 Incorrect long comparison for specific long values
- Resolved
-
JDK-2053872 Incorrect long comparison for specific long values
- Resolved
- duplicates
-
JDK-4671533 Incorrect handling of large long values in interpreter for Windows
- Closed