mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-23 00:29:57 +08:00
ZipInputStream.java: idem
2003-02-11 John Leuner <jewel@debian.org> * java/util/zip/ZipInputStream.java: idem From-SVN: r62754
This commit is contained in:
parent
886e08657e
commit
8f561af784
@ -1,3 +1,7 @@
|
||||
2003-02-11 John Leuner <jewel@debian.org>
|
||||
|
||||
* java/util/zip/ZipInputStream.java: idem
|
||||
|
||||
2003-02-11 Ranjit Mathew <rmathew@hotmail.com>
|
||||
|
||||
* java/io/natFileDescriptorWin32.cc
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* java.util.zip.ZipInputStream
|
||||
Copyright (C) 2001, 2002 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Classpath.
|
||||
|
||||
@ -286,6 +286,8 @@ public class ZipInputStream extends InflaterInputStream implements ZipConstants
|
||||
*/
|
||||
public int read(byte[] b, int off, int len) throws IOException
|
||||
{
|
||||
if (len == 0)
|
||||
return 0;
|
||||
if (crc == null)
|
||||
throw new IOException("Stream closed.");
|
||||
if (entry == null)
|
||||
|
Loading…
Reference in New Issue
Block a user