United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6323688 SA: jmap heap dumper should dump java.lang.Object as super class for all array classes
JDK-6323688 : SA: jmap heap dumper should dump java.lang.Object as super class for all array classes

Details
Type:
Bug
Submit Date:
2005-09-14
Status:
Resolved
Updated Date:
2010-08-24
Project Name:
JDK
Resolved Date:
2005-09-22
Component:
core-svc
OS:
generic
Sub-Component:
tools
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Backport:

Sub Tasks

Description
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).

                                    

Comments
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.
                                     
2005-09-15
SUGGESTED FIX

Webrev: http://bongo.india.sun.com/debugging/sa/6323688/1.6.0/webrev/

Also, refer to attachment "webrev.tar"
                                     
2005-09-15



Hardware and Software, Engineered to Work Together