mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8276164: RandomAccessFile#write method could throw IndexOutOfBoundsException that is not described in javadoc
Reviewed-by: alanb
This commit is contained in:
parent
0488ebdf14
commit
9bf31652cb
2 changed files with 5 additions and 1 deletions
|
@ -553,6 +553,7 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
|
|||
* @param off the start offset in the data.
|
||||
* @param len the number of bytes to write.
|
||||
* @throws IOException if an I/O error occurs.
|
||||
* @throws IndexOutOfBoundsException {@inheritDoc}
|
||||
*/
|
||||
public void write(byte[] b, int off, int len) throws IOException {
|
||||
writeBytes(b, off, len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue