The documentation of read(byte[],int.int) in ObjectInputStream and readFully(byte[]) and readFully(byte[],int,int) in DataInput, DataInputStream, ObjectInputStream and RandomAccessFile is confusing and/or incomplete.
1. In ObjectInputStream, read(byte[],int,int) is missing "@throws" tags for NullPointerException and IndexOutOfBoundsException, and the specification of the offset into the array is confusing (cf.JDK-4150728).
2. In DataInput, DataInputStream, ObjectInputStream and RandomAccessFile, readFully(byte[]) is missing the "@throws" tag for NullPointerException.
3. In DataInput, DataInputStream, ObjectInputStream and RandomAccessFile, readFully(byte[],int,int) is missing "@throws" tags for NullPointerException and IndexOutOfBoundsException, and the specification of the offset into the array is confusing (cf.JDK-4150728)..
1. In ObjectInputStream, read(byte[],int,int) is missing "@throws" tags for NullPointerException and IndexOutOfBoundsException, and the specification of the offset into the array is confusing (cf.
2. In DataInput, DataInputStream, ObjectInputStream and RandomAccessFile, readFully(byte[]) is missing the "@throws" tag for NullPointerException.
3. In DataInput, DataInputStream, ObjectInputStream and RandomAccessFile, readFully(byte[],int,int) is missing "@throws" tags for NullPointerException and IndexOutOfBoundsException, and the specification of the offset into the array is confusing (cf.
- relates to
-
JDK-4150728 (spec) {Data,}InputStream.read(byte[], int, int) - spec of offset argument confusing
-
- Resolved
-