Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4047709

stepping into System.out.println in jdb ends up in BreakpointHandler, hung threa

XMLWordPrintable

    • 1.1.4
    • generic
    • generic
    • Not verified

      The Problem
      >
      >If one attempts to step into a call to System.out.println, the
      >BreakpointHandler thread appears to stop on a breakpoint. Further stepping
      >results in hung threads.
      >
      >Sample Program
      >
      >
      >public class Bug12 {
      > public static void main(String argv[]) {
      > System.out.println("Hello world.\n");
      > }
      >}
      >
      >
      >
      >To demonstrate the problem, run "jdb Bug12" and enter the following jdb
      >commands:
      >
      >
      >stop in Bug12.main
      >run
      >step
      >
      >
      >
      >You will then see the following output:
      >
      >
      >Breakpoint hit: sun.tools.debug.BreakpointHandler.getOpcode
      >(BreakpointHandler:43)
      >

            rfield Robert Field (Inactive)
            mmma Marvin Ma (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: