Commit 8f561af7 by John Leuner Committed by Tom Tromey

ZipInputStream.java: idem

2003-02-11  John Leuner  <jewel@debian.org>

	* java/util/zip/ZipInputStream.java: idem

From-SVN: r62754
parent 886e0865
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
......
/* 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment