-
Bug
-
Resolution: Fixed
-
P1
-
1.4.2
-
b18
-
itanium
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2065792 | 5.0 | Steve Goldman | P1 | Closed | Fixed | beta |
Running the following test program with -Xcomp will crash the VM.
This demonstrate a problem that can occur in real programs without
-Xcomp.
class Vbase {
public void printer() {
System.out.println("Vbase");
}
}
class Vbase2 extends Vbase {
public void printer() {
System.out.println("Vbase2");
}
}
class Vbase3 extends Vbase {
public void printer() {
System.out.println("Vbase3");
}
}
class VtableNull {
public static void doprint(Vbase it) {
try {
it.printer();
} catch (NullPointerException e) {
throw new NullPointerException();
}
}
public static void main(String[] args) {
Vbase2 vb_null = null;
Vbase vb = new Vbase();
Vbase2 vb2 = new Vbase2();
Vbase3 vb3 = new Vbase3();
doprint(vb);
doprint(vb2);
doprint(vb3);
doprint(vb_null);
}
}
- backported by
-
JDK-2065792 IA64: implicit null in vtable stub crashes the VM
-
- Closed
-