I have a 6 byte InputStream and an InputStreamReader based on that. I do an ISR.read(chars[], 5, -2), and would expect an exception (IllegalArgument?), but it throws no exception and returns 0 as the number of characters read. The test case is attached.
- duplicates
-
JDK-4127657 read(byte[], int, int) in xxxReader can throw undocumented exceptions
-
- Closed
-