This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Various gij/jar/zip patches




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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]