Name: vsR10029 Date: 01/21/2001
This bug is filed only for tracking purposes to exclude tests from
TCKs for jdk1.1*-based products, the fix has already been integrated
in jdk1.2, so feel free to close it as such.
SIGSEGV happens in update(null, off, len) call instead of a proper
exception being thrown.
To reproduce run the code example:
---------------- TestAdler32.java ---------------
import java.util.zip.*;
public class TestAdler32 {
private final byte orig[] = {
65, 2, 15, 51, 39, 81, 27, 21, 115, 38, 53,
22, 38, 89, 75, 29, 38, 27, 120, 15, 68
};
public static void main(String argv[]) {
TestAdler32 test = new TestAdler32();
test.Adler320002();
}
public void Adler320002() {
Adler32 adler32 = new Adler32();
try {
adler32.update(null, 0, orig.length);
} catch (NullPointerException e) {
System.out.println("OKAY");
return;
}
System.out.println("NullPointerException expected.");
}
}
----------------------------------------------------
======================================================================