FileInputStream read(byte[] buf, int off, int len) with off, len params
< 0 no exception or the improper exception is thrown.
With len < 0 No exception at all is thrown. Expect IllegalArgumentException
to be thrown in this case.
With offset < 0 ArrayIndexOutOfBoundsException thrown, but not the expected
IllegalArgumentException
< 0 no exception or the improper exception is thrown.
With len < 0 No exception at all is thrown. Expect IllegalArgumentException
to be thrown in this case.
With offset < 0 ArrayIndexOutOfBoundsException thrown, but not the expected
IllegalArgumentException
- duplicates
-
JDK-4008296 java.io.XXXXInputStream.read(b,off,len) methods work wrong with off, len
-
- Closed
-