This fixes a minor bug, the constructor for GZIPInputStream should
apparently check if it's a valid gzip stream. 

It does not seem to cause any regressions. Seem OK to everyone?

2005-03-17  Sven de Marothy  <[EMAIL PROTECTED]>
        * java/util/zip/GZIPInputStream.java
        (GZIPInputStream): Read header in constructor.

Index: java/util/zip/GZIPInputStream.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/util/zip/GZIPInputStream.java,v
retrieving revision 1.11
diff -u -r1.11 GZIPInputStream.java
--- java/util/zip/GZIPInputStream.java	22 Oct 2004 18:02:06 -0000	1.11
+++ java/util/zip/GZIPInputStream.java	17 Mar 2005 22:57:10 -0000
@@ -128,6 +128,7 @@
   {
     super(in, new Inflater(true), size);
     crc = new CRC32();
+    readHeader();
   }
 
   /**
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to