JDK-4270488 : JDWP: Step over some native method calls never completes.
  • Type: Bug
  • Component: core-svc
  • Sub-Component: debugger
  • Affected Version: 1.2.2
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1999-09-10
  • Updated: 2002-09-06
  • Resolved: 2002-09-06
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
1.3.0 kestrelFixed
Related Reports
Relates :  
Description
When stepping over a native method which calls a Java method, the step never completes and the application runs to completion (or to the next event). This can be seen in JDK 1.2.2 with the following debuggee:

package untitled5;


public class untitled5 {

  public static void main(String[] args) {
    String xyz = "abc";
    Object obj = xyz;

    Class clazz = obj.getClass();

    //String toString = clazz.toString();   // uncomment this line if you want to avoid the problem
    String clazzName = clazz.getName();   // put breakpoint here, and step-over
    int  shouldbeHere = 0;                // it should have stopped here !!
    if (shouldbeHere >= 0) {
      System.out.println("abc");
    }

  }
}

Class.getName is a native method which, on its first call, will call a java method (String constructor). When stepping over the call in the example above, the app runs to completion. Note that getName() only calls a java method on its first invocation under 1.2.2. Under 1.3, this particular test case doesn't fail, but it should be easy to construct another that will, since the code in this area is unchanged. 

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic kestrel FIXED IN: kestrel INTEGRATED IN: kestrel
14-06-2004

EVALUATION Frame pops are not handled correctly in stepControl.c gordon.hirsch@eng 1999-09-17
17-09-1999