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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.3.0
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: