Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2018716 | 1.2.0 | Timothy Cramer | P5 | Resolved | Fixed | 1.2alpha1 |
Name: joT67522 Date: 01/21/98
When the JIT is enabled on Solaris 2.5.1 with versions of Java (from 1.1.2 to 1.2beta2),
the += or -= operations on integers greater than 4096 gives incorrect results.
public class CheckJIT {
pubic static void main(String[] args) {
int x = 0;
System.out.println("x --> " + x);
x += 4098;
System.out.println("x --> " + x);
x = 0;
x -= 4098;
System.out.println("x --> " + x);
}
}
(Review ID: 23709)
======================================================================
- backported by
-
JDK-2018716 Incorrect += or -= optimization for int greater than 4096
-
- Resolved
-