Hi,

I am slowly integrating the Intel Orp patches and had a question on the
following change:

* classpath/java/util/zip/InflaterInputStream.java: a small fix for
native zlib.

--- java/util/zip/InflaterInputStream.java    Fri Jan 25 23:01:09 2002
+++ java/util/zip/InflaterInputStream.java    Mon Jul 15 17:06:52 2002
@@ -202,7 +202,15 @@
        else if (inf.finished())
          return -1;
        else if (inf.needsInput())
+      {
          fill();
+        if (len == 0)
+        { 
+          //add a padding byte, 
+          //it's necessary when using native zlib
+          ++len;
+        }
+      }
        else
          throw new InternalError("Don't know what to do");
       }

When is this needed? GNU Classpath now contains a pure java
java.util.zip package so it doesn't seem to be necessary. When does this
situation that fill() returns zero bytes occur? If you have an example
zip file or other test case that shows the problem that would be greatly
appreciated.

Cheers,

Mark



_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to