2003-12-28 Guilhem Lavaux <guilhem@kaffe.org>

* java/io/LineNumberReader.java
	(mark): Improved error checking.
	(read): Likewise.
	(skip): Likewise. Skip is now really eating the specified number of
	characters.
	* java/io/CharArrayReader.java (read): It should throw
	IndexOutOfBoundsException and not ArrayIndexOutOfBoundsException (see
	mauve).
	* java/io/BufferedReader.java (readLine): Make readLine() really block
	until either EOF is reached or a true error happens.

From-SVN: r75180
This commit is contained in:
Guilhem Lavaux
2003-12-28 11:54:17 +00:00
committed by Michael Koch
parent 07dc48e014
commit 920be544c9
4 changed files with 42 additions and 8 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ public class CharArrayReader extends Reader
/* Don't need to check pos value, arraycopy will check it. */
if (off < 0 || len < 0 || off + len > b.length)
throw new ArrayIndexOutOfBoundsException();
throw new IndexOutOfBoundsException();
if (pos >= count)
return -1;