[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] [Patch] ZipFile fix
From: |
Michael Koch |
Subject: |
[cp-patches] [Patch] ZipFile fix |
Date: |
Thu, 27 Jan 2005 20:08:01 +0100 |
User-agent: |
Mutt/1.5.6+20040907i |
Hi list,
after the discussion on the list and a short dicussion with Mark on IRC
I commited now the attached patch to fix java.util.zip.ZipFile. A mauve
testcasegot also added.
Michael
2005-01-27 Michael Koch <address@hidden>
* java/util/zip/ZipFile.java
(ZIP_MAGIC): New constant.
(ZipFile): Check if given file is really a zip file.
(checkZipFile): New method.
(checkClosed): New method.
(entries): Check if file was closed. Return an empty enumeration in
error case.
(getEntries): Use checkClosed().
(getEntry): Check if file was closed.
(getInputStream): Likewise.
(size): Likewise.
zip.diff
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] [Patch] ZipFile fix,
Michael Koch <=