If you call FileWriter.write(String, int, int) with negative integers, you get a NegativeArraySizeException rather than an IllegalArgumentException.
- duplicates
-
JDK-4127657 read(byte[], int, int) in xxxReader can throw undocumented exceptions
-
- Closed
-