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

TTY: dump <ArrayReference> command not implemented.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.2
    • 1.4.1
    • core-svc
    • None
    • mantis
    • generic
    • generic



      Name: tb29552 Date: 07/31/2002


      While working on 4422141, I noticed the following:

      main[1] dump this
       this = {
          s: instance of java.lang.String[4] (id=298)
      }
      main[1] print s
       s = instance of java.lang.String[4] (id=298)
      main[1] dump s
       s = {
      }


      In Commands.java, there is code in private void dump() to deal with
      ClassType or InterfaceType but not ArrayType/ArrayReference... do
      nothing gets printed when you ask for a dump of an array.

      Compare to the behavior of the old sun.tools.debug jdb:


      main[1] dump this
      this = (a)0x107 {
          java.lang.String s[] = { one, two, three, ... }
      }
      main[1] print s
      s = { one, two, three, ... }
      main[1] dump s
      s = { one, two, three, ... } {
      }


      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: