re PR libgcj/3426 (java.io.InputStreamReader, infinite loop)
authorTom Tromey <tromey@redhat.com>
Fri, 13 Jul 2001 05:41:28 +0000 (05:41 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 13 Jul 2001 05:41:28 +0000 (05:41 +0000)
commita9a399fe24303d933a412f01c01bb8e78d97cf9f
tree4aff078d910dc63cd6e5522da1dc415bc661bb0c
parentc813baa415260f431f2a5c67312338802cbe5671
re PR libgcj/3426 (java.io.InputStreamReader, infinite loop)

Fix for PR libgcj/3426:
* gnu/gcj/convert/natIconv.cc: Include CharConversionException.h,
errno.h.
(read): Throw exception if character conversion fails.
* java/io/BufferedInputStream.java (refill): Now package-private.
* java/io/InputStreamReader.java (ready): Simplified.
(refill): New method.
(read): Use it.

Co-Authored-By: David Brownell <david-b@pacbell.net>
From-SVN: r43975
libjava/ChangeLog
libjava/gnu/gcj/convert/natIconv.cc
libjava/java/io/BufferedInputStream.java
libjava/java/io/InputStreamReader.java