JDK-6181784 : Step requests ignored after an exception in debugee
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 5.0
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-10-20
  • Updated: 2010-12-07
  • Resolved: 2005-01-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u3Fixed 6 b19Fixed
Related Reports
Relates :  
Description
1. Load the following class into jdb or any Java IDE
2. stop at breakpoint at line 3
3. evaluate the expression "Main.blow()", this should throw an exception in the debugeee VM (the invocation in debugger will throw an InvocationException)
4. step over ... this will effectively resume debugee, no step event is generated

Test class:
public class Main {
  public static void main(String[] args) {
    System.out.println("set breakpoint here");
    System.out.println("does not stop here");
    System.out.println("does not stop here");
  }
  
  private static void blow() {
    throw new NullPointerException();
  }
}

This issue was reported against Netbeans 4.0beta, see http://www.netbeans.org/issues/show_bug.cgi?id=50315

Works OK in 1.4.x releases, does not work since 1.5.0.
###@###.### 10/20/04 10:27 GMT

Comments
EVALUATION Bug is in jvmti code. Which does not clear off the exception detected bit for uncaught exceptions. So all post method exit and pop frame events posted with exception bit set to true. If a method called from jni throws exception the jvmti needs to clear the exception detected bit. One solution is clear the jvmti exception detected bit before returning from jni invoke static call. -Swamy ###@###.### 2004-11-05 23:14:20 GMT
20-10-2004