PipedReader read(char[] buf, int off, int len) with off, len params < 0
no exception or a improper exception is thrown. The Expected IllegalArgumentException should be thrown in these cases.
With offset < 0 No exception is thrown at all.
With len < 0 NegativeArraySizeException is thrown, but not the expected
IllegalArgumentException.
no exception or a improper exception is thrown. The Expected IllegalArgumentException should be thrown in these cases.
With offset < 0 No exception is thrown at all.
With len < 0 NegativeArraySizeException is thrown, but not the expected
IllegalArgumentException.
- duplicates
-
JDK-4127657 read(byte[], int, int) in xxxReader can throw undocumented exceptions
-
- Closed
-