Package: openjdk-6-jre
Severity: important
Current version of openjdk has a bug that causes the execution of incorrect
code when dealing with Integer.MAX_VALUE.
The problem is easily reproduceable with the following code:
public class HotSpotError {
static public void main(String[] args) {
int i1 = 0;
int i2 = Integer.MAX_VALUE;
while (i1 >= 0) {
i1++;
if (i1 > i2) {
System.out.println("E R R O R: " + i1);
return;
}
}
}
}
An example of the output is this:
E R R O R: 497892
The number of the iteration at which the bug exhibits depends on the
optimisation parameters used and the release of the JDK.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]