Re: jar tool bug

2000-10-29 Thread Archie Cobbs
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 ___

Re: jar tool bug

2000-10-27 Thread Patrick Tullmann
Archie Cobbs wrote: > Sun is wrong :-) A valid manifest file always starts with > > Manifest-Version: 1.0 > > But we should probably be compatible I guess. Ah. Perhaps a better option than being bug-compatible is to throw an JarException with a better message than "premature EOF, line 1"?

Re: jar tool bug

2000-10-27 Thread Nic Ferrier
>>> 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. This has annoyed me for a while but there is a more serious bug - the jar tool doesn't seem able to cope with JAR 1.2 archives.

Re: jar tool bug

2000-10-27 Thread Archie Cobbs
Patrick Tullmann writes: > The jar tool blows up if a zero-byte manifest file is provided. Sun's > jar tool does not blow up. Here's how to reproduce it: Sun is wrong :-) A valid manifest file always starts with Manifest-Version: 1.0 But we should probably be compatible I guess. -Archie

jar tool bug

2000-10-27 Thread Patrick Tullmann
The jar tool blows up if a zero-byte manifest file is provided. Sun's jar tool does not blow up. Here's how to reproduce it: $ touch manifest $ jar -cfm asdf.jar manifest manifest You'll get something like this: java.io.IOException: premature EOF, line 1 at java.lang.Throwable.fillIn