test/java/util/zip/ConstructInflaterOutput.java

Print this page

        

*** 21,31 **** * questions. */ /** * @test ! * @bug 4679743 * @summary Test parts of InflaterOutputStream code that don't really do I/O. */ import java.io.*; import java.util.zip.*; --- 21,31 ---- * questions. */ /** * @test ! * @bug 4679743 8148624 * @summary Test parts of InflaterOutputStream code that don't really do I/O. */ import java.io.*; import java.util.zip.*;
*** 39,51 **** fail("MyInflater had end() called"); super.end(); } } public static void realMain(String[] args) throws Throwable { ByteArrayOutputStream baos = new ByteArrayOutputStream(); - MyInflater inf = new MyInflater(); InflaterOutputStream ios = null; byte[] b = new byte[512]; // Check construction // --- 39,52 ---- fail("MyInflater had end() called"); super.end(); } } + private static MyInflater inf = new MyInflater(); + public static void realMain(String[] args) throws Throwable { ByteArrayOutputStream baos = new ByteArrayOutputStream(); InflaterOutputStream ios = null; byte[] b = new byte[512]; // Check construction //