# HG changeset patch # User chegar # Date 1284130625 -3600 # Node ID 2694e08f83eadcbc061575e12a381071f0475a16 # Parent 77ffd0e75bfbb22ea331956399594acc2827d01c 6980517: TEST_BUG sun\net\www\http\ChunkedInputStream\ChunkedEncodingTest.java NullPointerException Reviewed-by: michaelm diff -r 77ffd0e75bfb -r 2694e08f83ea 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);