6980517: TEST_BUG sun\net\www\http\ChunkedInputStream\ChunkedEncodingTest.java NullPointerException
authorchegar
Fri, 10 Sep 2010 15:57:05 +0100
changeset 6536 2694e08f83ea
parent 6535 77ffd0e75bfb
child 6539 874f52171965
6980517: TEST_BUG sun\net\www\http\ChunkedInputStream\ChunkedEncodingTest.java NullPointerException Reviewed-by: michaelm
jdk/test/sun/net/www/http/ChunkedInputStream/ChunkedEncodingTest.java
--- 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);