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
This commit is contained in:
parent
c813baa415
commit
a9a399fe24
4 changed files with 84 additions and 65 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2001 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -131,7 +131,7 @@ public class BufferedInputStream extends FilterInputStream
|
|||
return origN - n;
|
||||
}
|
||||
|
||||
private boolean refill() throws IOException
|
||||
boolean refill() throws IOException
|
||||
{
|
||||
if (markpos < 0)
|
||||
count = pos = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue