6980517: TEST_BUG sun\net\www\http\ChunkedInputStream\ChunkedEncodingTest.java NullPointerException
Reviewed-by: michaelm
--- a/jdk/test/sun/net/www/http/ChunkedInputStream/ChunkedEncodingTest.java Thu Sep 09 11:50:40 2010 -0700
+++ b/jdk/test/sun/net/www/http/ChunkedInputStream/ChunkedEncodingTest.java Fri Sep 10 15:57:05 2010 +0100
@@ -38,7 +38,7 @@
public class ChunkedEncodingTest{
private static MessageDigest serverDigest, clientDigest;
- private static byte[] serverMac, clientMac;
+ private static volatile byte[] serverMac, clientMac;
static void client(String u) throws Exception {
URL url = new URL(u);
@@ -106,7 +106,7 @@
while (is.read() != -1);
is.close();
- t.sendResponseHeaders (200, MESSAGE_LENGTH);
+ t.sendResponseHeaders (200, 0);
OutputStream os = t.getResponseBody();
DigestOutputStream dos = new DigestOutputStream(os, serverDigest);