public JavaThing dereference(Snapshot snapshot, JavaField field, boolean verbose) { if (field != null && !field.hasId()) { // If this happens, we must be a field that represents an int. // (This only happens with .bod-style files) returnnew JavaLong(id);
} if (id == 0) { return snapshot.getNullThing();
}
JavaThing result = snapshot.findThing(id); if (result == null) { if (!snapshot.getUnresolvedObjectsOK() && verbose) {
String msg = "WARNING: Failed to resolve object id "
+ Misc.toHex(id); if (field != null) {
msg += " for field " + field.getName()
+ " (signature " + field.getSignature() + ")";
}
System.out.println(msg); // Thread.dumpStack();
}
result = new HackJavaValue("Unresolved object "
+ Misc.toHex(id), 0);
} return result;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.