test/java/util/zip/ConstructDeflaterInput.java

Print this page

        

*** 21,31 **** * questions. */ /** * @test ! * @bug 4679743 * @summary Test parts of DeflaterInputStream 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 DeflaterInputStream code that don't really do I/O. */ import java.io.*; import java.util.zip.*;
*** 39,52 **** fail("MyDeflater had end() called"); super.end(); } } 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 // --- 39,52 ---- 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()); DeflaterInputStream dis = null; byte[] b = new byte[512]; // Check construction //