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

"step" doesn't stop at the next statement - it completes the program

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • core-svc
    • None
    • beta3
    • generic
    • generic, solaris_7
    • Not verified

      frog:~/workspaces/test/jdbstep $ pwd
      /home/gafter/workspaces/test/jdbstep
      frog:~/workspaces/test/jdbstep $ ls -la
      total 9
      drwxr-xr-x 4 gafter 512 Aug 28 10:44 .
      drwxr-xr-x 42 gafter 3584 Aug 28 10:27 ..
      drwxr-xr-x 3 gafter 512 Aug 28 10:34 classes
      -rw-r--r-- 1 gafter 252 Aug 28 10:40 cmd
      drwxr-xr-x 3 gafter 512 Aug 28 10:33 src
      -rw-r--r-- 1 gafter 18 Aug 28 10:41 t.java
      frog:~/workspaces/test/jdbstep $ cat -n cmd
           1 #! /bin/sh
           2
           3 /java/re/j2se/1.4.0/promoted/latest/binaries/solsparc/bin/jdb \
           4 -Xbootclasspath/p:classes \
           5 -sourcepath src \
           6 com.sun.tools.javadoc.Main \
           7 -docletpath /java/re/j2se/1.4.0/promoted/latest/binaries/solsparc/lib/tools.jar \
           8 t.java t.java
      frog:~/workspaces/test/jdbstep $ sh cmd
      Initializing jdb ...
      > stop at com.sun.tools.javac.v8.comp.Enter:561
      Deferring breakpoint com.sun.tools.javac.v8.comp.Enter:561.
      It will be set after the class is loaded.
      > run
      run com.sun.tools.javadoc.Main -docletpath /java/re/j2se/1.4.0/promoted/latest/binaries/solsparc/lib/tools.jar t.java t.java
      >
      VM Started: Set deferred breakpoint com.sun.tools.javac.v8.comp.Enter:561
      Loading source file t.java...
      Loading source file t.java...
      Constructing Javadoc information...
       
      Breakpoint hit: "thread=main", com.sun.tools.javac.v8.comp.Enter._case(), line=561 bci=287
      561 log.error(tree.pos, "duplicate.class", c.fullname.toJava());
       
      main[1] list
      557 tree.sym = c;
      558
      559 // Enter class into `compiled' table and enclosing scope.
      560 if (chk.compiled.get(c.flatname) != null) {
      561 => log.error(tree.pos, "duplicate.class", c.fullname.toJava());
      562 result = new ErrorType(c);
      563 return;
      564 }
      565 chk.compiled.put(c.flatname, c);
      566 enclScope.enter(c);
      main[1] step
      > t.java:1: duplicate class: t
      public class t {}
             ^
      Standard Doclet version 1.4 beta (04 Aug 2001)
       
      javadoc: No public or protected classes found to document.
      1 error
      1 warning
       
      The application exited
      frog:~/workspaces/test/jdbstep $

      ###@###.### 2001-08-28

            tbell Tim Bell
            gafter Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: