-
Bug
-
Resolution: Fixed
-
P4
-
1.1.5, 1.1.6, 1.2.0
-
1.2beta4
-
generic, x86, sparc
-
generic, solaris_2.6, windows_nt
-
Not verified
check if their arguments are valid and could throw undocumented exceptions.
We need to add checks in these methods and update the document
for the general constract of this method in the Reader class to specify what kind of exception will be thrown in different cases.
Same problem exists for write(byte[], int, int) methods defined in several
Writer classes.
- duplicates
-
JDK-4139961 java.io.InputStreamReader.read(array, int, int) wrong exception when params out
-
- Closed
-
-
JDK-4139969 java.io.InputStreamReader.read(char[], -int, -int) is allowed
-
- Closed
-
-
JDK-4139992 java.io.FileReader.read(char[], outofbounds, outofbounds) invalid exception
-
- Closed
-
-
JDK-4139993 java.io.FileReader.read(char[], negative, negative) invalid exception
-
- Closed
-
-
JDK-4139998 java.io.FileWriter.write(char[], int, int) invalid exception if out of bounds/ne
-
- Closed
-
-
JDK-4139999 java.io.FileWriter.write(String, negative, negative) invalid exception
-
- Closed
-
-
JDK-4140001 java.io.FileWriter.write(String, outofbounds, outofbounds) invalid exception
-
- Closed
-
-
JDK-4150436 java.io.InputStreamReader.read(chars[6], 5, -2) yeilds 0 length read
-
- Closed
-
-
JDK-4152513 java.io.BufferedWriter.write(chars, int, negative) - no exception
-
- Closed
-
-
JDK-4192850 java.io.PipedReader.read(char[], int, int) off, len outside bounds no exception
-
- Closed
-
-
JDK-4192904 java.io.Writer.write(String, int, int) off+len outside bounds no exception throw
-
- Closed
-
-
JDK-4137762 java.io.Writer.write(char[], int, int) out of bounds exception
-
- Closed
-
-
JDK-4153022 (1.1) java.io.StringWriter.write(str,int,int) allows out of bounds case
-
- Closed
-
-
JDK-4192853 java.io.PipedReader.read(char[], int, int) len, off < 0 no exception
-
- Closed
-
-
JDK-4192890 java.io.PrintWriter write(char[], int, int) len, off < 0 wrong exception
-
- Closed
-
-
JDK-4192893 java.io.StringWriter(int) size < 0 wrong exception thrown
-
- Closed
-
-
JDK-4192902 java.io.Writer.write(String, int, int) off, len < 0 wrong exception thrown
-
- Closed
-