8148624: Test failure of ConstructInflaterOutput.java
authorsherman
Mon, 15 Feb 2016 10:27:13 -0800
changeset 35959 c4c9ee2cb926
parent 35958 31866c4c84d3
child 35975 6ed1de57b086
8148624: Test failure of ConstructInflaterOutput.java Reviewed-by: darcy
jdk/test/java/util/zip/ConstructDeflaterInput.java
jdk/test/java/util/zip/ConstructInflaterOutput.java
--- a/jdk/test/java/util/zip/ConstructDeflaterInput.java	Mon Feb 15 15:57:58 2016 +0000
+++ b/jdk/test/java/util/zip/ConstructDeflaterInput.java	Mon Feb 15 10:27:13 2016 -0800
@@ -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];
 
--- a/jdk/test/java/util/zip/ConstructInflaterOutput.java	Mon Feb 15 15:57:58 2016 +0000
+++ b/jdk/test/java/util/zip/ConstructInflaterOutput.java	Mon Feb 15 10:27:13 2016 -0800
@@ -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];