Patch: FYI: InflaterInputStream fix
Tom Tromey
tromey@redhat.com
Thu Feb 10 05:03:00 GMT 2005
I'm checking this in.
InflaterInputStream lied about supporting mark(), leading to a jonas
runtime bug when using our XmlParser.
This code comes straight from Classpath and so should reduce our
divergence by a tiny amount.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* java/util/zip/InflaterInputStream.java (markSupported):
Override.
(mark, reset): Likewise.
Index: java/util/zip/InflaterInputStream.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/util/zip/InflaterInputStream.java,v
retrieving revision 1.24
diff -u -r1.24 InflaterInputStream.java
--- java/util/zip/InflaterInputStream.java 7 Nov 2004 01:25:47 -0000 1.24
+++ java/util/zip/InflaterInputStream.java 10 Feb 2005 00:21:32 -0000
@@ -1,5 +1,5 @@
/* InflaterInputStream.java - Input stream filter for decompressing
- Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
+ Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -245,4 +245,18 @@
return skipped;
}
+
+ public boolean markSupported()
+ {
+ return false;
+ }
+
+ public void mark(int readLimit)
+ {
+ }
+
+ public void reset() throws IOException
+ {
+ throw new IOException("reset not supported");
+ }
}
More information about the Java-patches
mailing list