publicclass Test6859338 { static Object[] o = new Object[] { new Object(), null }; publicstaticvoid main(String[] args) { int total = 0; try { // Exercise the implicit null check in the unverified entry point for (int i = 0; i < 40000; i++) { int limit = o.length; if (i < 20000) limit = 1; for (int j = 0; j < limit; j++) {
total += o[j].hashCode();
}
}
} catch (NullPointerException e) { // this is expected. A true failure causes a crash
}
}
}
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.