This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
RE: Various gij/jar/zip patches
- To: "'Mark Wielaard'" <mark at klomp dot org>
- Subject: RE: Various gij/jar/zip patches
- From: Anthony Green <green at cygnus dot com>
- Date: Sun, 20 Aug 2000 12:37:49 -0700
- Cc: "java-patches at sources dot redhat dot com" <java-patches at sources dot redhat dot com>
- Organization: Red Hat
- Reply-To: "green at cygnus dot com" <green at cygnus dot com>
On Sunday, August 20, 2000 12:13 PM, Mark Wielaard [SMTP:mark@klomp.org]
wrote:
> Thanks for finding this. Note that you should actually do
Ah yes - of course! Thanks. Committed.
Sun Aug 20 12:33:43 2000 Anthony Green <green@redhat.com>
* java/util/jar/JarFile.java: Don't call
java.util.zip.ZipFile.getEntry twice. From Mark Wielaard
<mark@klomp.org>.
Index: libjava/java/util/jar/JarFile.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/jar/JarFile.java,v
retrieving revision 1.5
diff -u -p -u -r1.5 JarFile.java
--- JarFile.java 2000/08/20 17:49:12 1.5
+++ JarFile.java 2000/08/20 19:37:55
@@ -232,7 +232,7 @@ public class JarFile extends ZipFile {
public ZipEntry getEntry(String name) {
ZipEntry entry = super.getEntry(name);
if (entry != null) {
- JarEntry jarEntry = new JarEntry(super.getEntry(name));
+ JarEntry jarEntry = new JarEntry(entry);
if (manifest != null) {
jarEntry.attr = manifest.getAttributes(name);
// XXX jarEntry.certs
AG