Name: tb29552 Date: 07/15/2003
FULL PRODUCT VERSION :
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)
A DESCRIPTION OF THE PROBLEM :
When debugging the following sample program (using Eclipse JDI debugger), a breakpoint is placed on a line that will cause an NullPointerException to be generated. The line is then stepped over. The step request never completes - instead the VM resumes execution. The problem appears to occurr on 1.3.1 and 1.4.1 VMs as well as 1.4.2 VMs (does work on 1.2.2). The problem does not occurr with IBM VMs (1.3.1 and higher).
Sample program (breakpoint on line 11, as indicated).
public class StepOver {
public static void main(String[] args) {
try {
foo();
} catch (Exception e) {
}
while (true);
}
private static void foo() {
String s= null;
s.charAt(0); // <-- breakpoint here
}
}
REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 190900)
======================================================================
- relates to
-
JDK-4331369 jdb: it needs to call 'step' twice to step from brkpoint in main
-
- Closed
-