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

TTY: jdb sourcepath does not reflect changed value

XMLWordPrintable

    • beta2
    • generic
    • generic
    • Not verified



      Name: tb29552 Date: 03/02/2001


      Using "sourcepath" or "use" by themselves in jdb reports the default
      sourcepath, but not a newly changed value.

      Here's output from debugging a simple class, "Hello".

      -----------------------------------------------

      > Set deferred breakpoint Hello:8

      Breakpoint hit: thread="main", Hello.main(), line=8, bci=0

      main[1] list
      Source file not found: Hello.java
      main[1] use
      .
      main[1] use /dove1/users/claudiam/gsjlayers13/tests/uitest/debug/unit
      main[1] list
      4
      5 static String message = "Hello";
      6
      7 public static void main( String args[] ) {
      8 => System.out.println( message + ", world." );
      9 System.exit(0);
      10 }
      11 }
      main[1] use
      .

      --------------------------------------------

        From reading the jdb help, I would expect that last "use" to
      report the current sourcepath.
      (Review ID: 117718)
      ======================================================================

            tbell Tim Bell
            tbell Tim Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: