JDK-6323688 : SA: jmap heap dumper should dump java.lang.Object as super class for all array classes
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-09-14
  • Updated: 2010-08-24
  • Resolved: 2005-09-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
1.4.2_12Fixed 6 b53Fixed
SA jmap heap dumper uses different super classes for array classes. For eg. for String[].class, Object[].class is used as super class and so on. In "Java view", all array classes have java.lang.Object as super class. (for eg. refer to javadoc of java.lang.Class.getSuperclass method).

EVALUATION Use Klass.getJavaSuper() instead of Klass.getSuper() when dumping superclass ID. ArrayKlass.getJavaSuper() is overriden to return java.lang.Object class. Refer to "Suggested Fix" for changes.

SUGGESTED FIX Webrev: http://bongo.india.sun.com/debugging/sa/6323688/1.6.0/webrev/ Also, refer to attachment "webrev.tar"