test/java/util/zip/ConstructDeflaterInput.java

Print this page

        

@@ -21,11 +21,11 @@
  * questions.
  */
 
 /**
  * @test
- * @bug 4679743
+ * @bug 4679743 8148624
  * @summary Test parts of DeflaterInputStream code that don't really do I/O.
  */
 
 import java.io.*;
 import java.util.zip.*;

@@ -39,14 +39,14 @@
             fail("MyDeflater had end() called");
             super.end();
         }
     }
 
+    private static MyDeflater def = new MyDeflater();
     public static void realMain(String[] args) throws Throwable {
         ByteArrayInputStream bais = new ByteArrayInputStream(
             "hello, world".getBytes());
-        MyDeflater def = new MyDeflater();
         DeflaterInputStream dis = null;
         byte[] b = new byte[512];
 
         // Check construction
         //