Nic Ferrier writes:
> >>> Patrick Tullmann <[EMAIL PROTECTED]> 27-Oct-00 6:17:00 PM >>>
> 
> >The jar tool blows up if a zero-byte manifest file is provided.
> >Sun's jar tool does not blow up.  

Can whoever saw this problem test the patch below?

-Archie

__________________________________________________________________________
Archie Cobbs     *     Packet Design     *     http://www.packetdesign.com

Index: Manifest.java
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/javalib/java/util/jar/Manifest.java,v
retrieving revision 1.4
diff -u -r1.4 Manifest.java
--- Manifest.java       2000/01/10 10:41:17     1.4
+++ Manifest.java       2000/10/28 18:56:57
@@ -243,7 +243,7 @@
 
                // Jump here when we get EOF
                } catch (EOFException e) {
-                   if (numChunks == 0 || state != ST_START) {
+                   if (state != ST_START) {
                        throw new IOException("premature EOF, line " + lineno);
                    }
                }

Reply via email to