8148624: Test failure of ConstructInflaterOutput.java

Reviewed-by: darcy
diff --git a/jdk/test/java/util/zip/ConstructDeflaterInput.java b/jdk/test/java/util/zip/ConstructDeflaterInput.java
index 631163dc..94b308b 100644
--- a/jdk/test/java/util/zip/ConstructDeflaterInput.java
+++ b/jdk/test/java/util/zip/ConstructDeflaterInput.java
@@ -23,7 +23,7 @@
 
 /**
  * @test
- * @bug 4679743
+ * @bug 4679743 8148624
  * @summary Test parts of DeflaterInputStream code that don't really do I/O.
  */
 
@@ -41,10 +41,10 @@
         }
     }
 
+    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];
 
diff --git a/jdk/test/java/util/zip/ConstructInflaterOutput.java b/jdk/test/java/util/zip/ConstructInflaterOutput.java
index d767235..c83826c 100644
--- a/jdk/test/java/util/zip/ConstructInflaterOutput.java
+++ b/jdk/test/java/util/zip/ConstructInflaterOutput.java
@@ -23,7 +23,7 @@
 
 /**
  * @test
- * @bug 4679743
+ * @bug 4679743 8148624
  * @summary Test parts of InflaterOutputStream code that don't really do I/O.
  */
 
@@ -41,9 +41,10 @@
         }
     }
 
+    private static MyInflater inf = new MyInflater();
+
     public static void realMain(String[] args) throws Throwable {
         ByteArrayOutputStream baos = new ByteArrayOutputStream();
-        MyInflater inf = new MyInflater();
         InflaterOutputStream ios = null;
         byte[] b = new byte[512];