if (lineNumbers.length != codeIndices.length) {
failure("FAILED: Bad test. Line number and code index arrays " + "must be equal in size");
}
if (locations.size() != codeIndices.length) { // Help the tester see why it failed.
Iterator iter = locations.iterator(); while (iter.hasNext()) {
Location location = (Location)iter.next();
System.err.println("location=" + location);
}
failure("FAILED: Bad line number table size: jdi=" +
locations.size() + ", test=" + codeIndices.length);
}
int i = 0;
Iterator iter = locations.iterator(); while (iter.hasNext()) {
Location location = (Location)iter.next(); if (location.codeIndex() != codeIndices[i]) {
failure("FAILED: Code index mismatch: jdi=" +
location.codeIndex() + ", test=" + codeIndices[i]);
} if (location.lineNumber() != lineNumbers[i]) {
failure("FAILED: Line number mismatch: jdi=" +
location.lineNumber() + ", test=" + lineNumbers[i]);
}
i++;
}
// Allow application to complete
listenUntilVMDisconnect();
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.