* java/io/InputStreamReader.java (refill): Only call refill on
BufferedInputStream when appropriate constraints are met.
From-SVN: r44675
+2001-08-06 Tom Tromey <tromey@redhat.com>
+
+ * java/io/InputStreamReader.java (refill): Only call refill on
+ BufferedInputStream when appropriate constraints are met.
+
2001-08-05 Tom Tromey <tromey@redhat.com>
* java/io/StringWriter.java: Merged with Classpath.
// We have knowledge of the internals of BufferedInputStream
// here. Eww.
in.mark (0);
- boolean r = in.refill ();
+ // BufferedInputStream.refill() can only be called when
+ // `pos>=count'.
+ boolean r = in.pos < in.count || in.refill ();
in.reset ();
if (! r)
return false;