continue;
}
try {
JavaObject thisObject = (JavaObject) next;
JavaClass thisClass = thisObject.getJavaClass();
int hashcode = 0;
try {
hashcode = (int) thisObject.getHashcode();
}
catch (DataUnavailable ex) {
_numberOfErrors++;
reportError("Failed to get hashcode for object: " + thisObject.getID(),ex);
}
if (thisObject.isArray()) {
if (isPrimitive(thisClass.getComponentType())) {
formatter.addPrimitiveArray(thisObject.getID().getAddress(),
thisClass.getID().getAddress(),
getPrimitiveTypeCode(thisClass.getComponentType()),
(int) thisObject.getSize(),
hashcode,
thisObject.getArraySize());
}
else {
formatter.addObjectArray(thisObject.getID().getAddress(),
thisClass.getID().getAddress(),
thisClass.getName(),
thisClass.getComponentType().getID().getAddress(),
thisClass.getComponentType().getName(),
(int) thisObject.getSize(),
thisObject.getArraySize(),
hashcode,
getObjectReferences(thisObject));
}
}
else {
formatter.addObject(thisObject.getID().getAddress(),
thisClass.getID().getAddress(),
thisClass.getName(),
(int)thisObject.getSize(),
hashcode,
getObjectReferences(thisObject));
}
}