JarFile.java: Don't call java.util.zip.ZipFile.getEntry twice.

* java/util/jar/JarFile.java: Don't call
        java.util.zip.ZipFile.getEntry twice.  From Mark Wielaard
        <mark@klomp.org>.

From-SVN: r35824
This commit is contained in:
Anthony Green 2000-08-20 19:40:25 +00:00 committed by Anthony Green
parent 9c66892187
commit 53e687fabb
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
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>.
Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com> Sun Aug 20 09:51:48 2000 Anthony Green <green@redhat.com>
* java/net/URLClassLoader.java: Find the JarEntry via the JarFile. * java/net/URLClassLoader.java: Find the JarEntry via the JarFile.

View File

@ -232,7 +232,7 @@ public class JarFile extends ZipFile {
public ZipEntry getEntry(String name) { public ZipEntry getEntry(String name) {
ZipEntry entry = super.getEntry(name); ZipEntry entry = super.getEntry(name);
if (entry != null) { if (entry != null) {
JarEntry jarEntry = new JarEntry(super.getEntry(name)); JarEntry jarEntry = new JarEntry(entry);
if (manifest != null) { if (manifest != null) {
jarEntry.attr = manifest.getAttributes(name); jarEntry.attr = manifest.getAttributes(name);
// XXX jarEntry.certs // XXX jarEntry.certs