publicclass Bounds { publicstaticvoid main(String[] args) throws Exception { byte[] b = newbyte[0]; int offset = 4; int length = Integer.MAX_VALUE - 3;
try {
(new CRC32()).update(b, offset, length); thrownew RuntimeException("Expected exception not thrown");
} catch (ArrayIndexOutOfBoundsException aioobe) { // Correct result
} try {
(new Deflater()).setDictionary(b, offset, length); thrownew RuntimeException("Expected exception not thrown");
} catch (ArrayIndexOutOfBoundsException aioobe) { // Correct result
} try {
(new Adler32()).update(b, offset, length); thrownew RuntimeException("Expected exception not thrown");
} catch (ArrayIndexOutOfBoundsException aioobe) { // Correct result
} try {
(new Deflater()).deflate(b, offset, length); thrownew RuntimeException("Expected exception not thrown");
} catch (ArrayIndexOutOfBoundsException aioobe) { // Correct result
} try {
(new Inflater()).inflate(b, offset, length); thrownew RuntimeException("Expected exception not thrown");
} catch (ArrayIndexOutOfBoundsException aioobe) { // Correct result
}
}
}
Messung V0.5 in Prozent
¤ 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.0.9Bemerkung:
(vorverarbeitet am 2026-06-10)
¤
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.