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, ... } {
}
======================================================================
- relates to
-
JDK-4422141 TTY: .length field for arrays in print statements in jdb not recognized
-
- Resolved
-