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

Debugger skips multiple lines / continues execution at the same time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0_02
    • Fix Version/s: tbd_major
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      Debugger skips multiple lines/ continues execution at the same time. This bug affects j2sdk1.4.0, j2sdk1.4.0_01, j2sdk1.4.0_02. The latest JDKs (j2sdk1.4.1-build21, j2sdk1.4.2-build02) don't contain this bug. Here is a test case:
      - start jdb ($JAVA_HOME/bin/jdb)
      - put a breakpoint to the line 8 (stop at Test:8)
      - run a java test file (run Test)
      - step to the next line (next)
      - step to the next line again; line 10 is expected (next)
      ! The line 10 is expected, but the debugger continues until a breakpoint is hit !


      public class Test {
          public static void main( String args[] ) throws Exception {
              test1();
          }

          public static void test1() {
              for( int i = 0; i < 10; i++ ) {
                  System.out.println( "aaa" );
                  test2();
                  System.out.println( "ddd" );
              }
          }

          public static void test2() {
              try {
                  System.out.println( "bbb" );
                  throw new Exception( "test" );
              } catch( Exception e ) {
                  System.out.println( "ccc" );
              }
          }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjh James Holmlund (Inactive)
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: