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

can't print value of parameter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.0
    • tools
    • sparc
    • solaris_2.5

      Using the MouseTrack.java program and the example1.html file in ~mem/classes.
       
      Do the following
              % appletviewer -debug example1.html
                      Loading jdb ...
                      0xee301bb8:class(sun.applet.AppletViewer)
              > stop at CatchMe:124
                      Breakpoint set at CatchMe:124
              > run
                      run sun.applet.AppletViewer example1.html
                      running ...
                      Breakpoint hit: CatchMe.<init> (MouseTrack.java:124)
                      Thread-6[1] list
                      120 private boolean debug = true;
                      121
                      122 /** Constructs a new CatchMe object. */
                      123 public CatchMe(int width, int height, MouseTrack applet) {
                      124 => w = width;
                      125 h = height;
                      126 gameEngine = applet;
                      127 }
                      128
              Thread-6[1] print width
                      "width" is not a valid id or class name.
       
      Problem:
      I'm stopped in a constructor method.
      I say print width (where width is one of the parameters).
      It sez:
              "width" is not a valid id or class name.

            tballsunw Tom Ball (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: