jdb does not always stop execution at next line with next command

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 1.3.0
    • Component/s: vm-legacy
    • generic
    • generic

      To reproduce use:


      public class test {

          static String fnCall(String str) {
              return str;
          }

          public static void main(String[] argv) {
              String atr = fnCall("test this");
              if (atr.indexOf("th") != 0) {
                  System.out.println ("\"th\" is inside the string");
              } else {
                  System.out.println ("\"th\" is not inside the string");
              }
              atr = fnCall("test this");
          }
      }

      jdb commands:

      stop in test.main
      run
      next

            Assignee:
            Daniel Daugherty
            Reporter:
            Alexei Volkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: