The original description of this bug does not seem to match the synopsis. The following program does:
public class zero {
public static void main(String[] args) {
System.out.println(1/0);
}
}
Running the above yields:
zero.java:3: Arithmetic exception.
System.out.println(1/0);
^
1 error
-------
Here is the original description for this bug, which more properly is described by bugid 4019304:
class UofO {
private float value = 10;
private static final float one_sixth_inch = (float)((1/6)*0.0254);
public float getm() { return value; }
public float this_compiles() {
float val = one_sixth_inch;
return getm() / val;
}
public float this_doesnt_compile() {
return (getm() / one_sixth_inch);
}
}