This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: ZipInputStream broken?
- To: Per Bothner <per at bothner dot com>
- Subject: Re: ZipInputStream broken?
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Mon, 05 Nov 2001 11:32:57 +1300
- CC: Adam Megacz <gcj at lists dot megacz dot com>, java at gcc dot gnu dot org
- References: <E15vdRx-0000hS-00@tf1.tapsellferrier.co.uk> <3BD4A0A0.5060705@waitaki.otago.ac.nz> <m3668q7va4.fsf_-_@noneofyourbusiness.com> <3BE58B72.5030503@bothner.com>
Per Bothner wrote:
> Perhaps there is a bad/missing magic number at end of .zip entry?
>
> For someone to debug it you of course would have to provide them
> the email.xwa input file.
The test case fails for all zip files, although the behaviour on the
trunk is a little different to what Adam reported. I get a null returned
from getNextEntry() after the second call, because this test fails:
if (in.read() != 'P'
|| in.read() != 'K')
return null;
I'll take a look at it after the bootstrap is fixed, and maybe also take
a serious look at Jazzlib...
regards
Bryce.