JIT generates wierd code for the following program:
class divtest {
public static void main(String[] args) {
int x = 2;
int y = 0;
int z = x / y;
}
}
The visible effect is that the division by zero exception is not generated.
It almost seems like JIT is doing some sort of dead code elimination.
class divtest {
public static void main(String[] args) {
int x = 2;
int y = 0;
int z = x / y;
}
}
The visible effect is that the division by zero exception is not generated.
It almost seems like JIT is doing some sort of dead code elimination.