From 57b0b1025d6ee33cfb8c6a7d18153e12f35063b5 Mon Sep 17 00:00:00 2001 From: green Date: Sun, 20 Aug 2000 17:49:12 +0000 Subject: Sun Aug 20 09:51:48 2000 Anthony Green * java/net/URLClassLoader.java: Find the JarEntry via the JarFile. * java/net/JarURLConnection.java: getEntry doesn't take any arguments. Return null if element is null. * java/util/zip/ZipFile.java (getInputStream): Read the compressed size from the archive, not the inflated size. * java/util/jar/JarFile.java (getEntry): Don't recurse. Call java.util.zip.ZipFile.getEntry. * gij.cc (help): Change sourceware reference to sources.redhat.com. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35821 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/util/zip/ZipFile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjava/java/util/zip/ZipFile.java') diff --git a/libjava/java/util/zip/ZipFile.java b/libjava/java/util/zip/ZipFile.java index 78257869fe9..22ed74b6e78 100644 --- a/libjava/java/util/zip/ZipFile.java +++ b/libjava/java/util/zip/ZipFile.java @@ -121,7 +121,7 @@ public class ZipFile implements ZipConstants public InputStream getInputStream(ZipEntry ze) throws IOException { - byte[] buffer = new byte[(int) ze.getSize()]; + byte[] buffer = new byte[(int) ze.getCompressedSize()]; /* Read the size of the extra field, and skip to the start of the data. */ -- cgit v1.2.3