FULL PRODUCT VERSION :
java -version 1.8
A DESCRIPTION OF THE PROBLEM :
https://docs.oracle.com/javase/8/docs/api/java/io/FilterOutputStream.html#write-byte:A-int-int-
The write(byte[] b, int off, int len) method documentation states:
Note that this method does not call the write method of its underlying input stream with the same arguments. Subclasses of FilterOutputStream should provide a more efficient implementation of this method.
FilterOutputStream has an underlying OUTPUT stream, not an underlying INPUT stream.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Go to the javadoc: https://docs.oracle.com/javase/8/docs/api/java/io/FilterOutputStream.html#write-byte:A-int-int-
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
You will see the typo
REPRODUCIBILITY :
This bug can be reproduced always.
java -version 1.8
A DESCRIPTION OF THE PROBLEM :
https://docs.oracle.com/javase/8/docs/api/java/io/FilterOutputStream.html#write-byte:A-int-int-
The write(byte[] b, int off, int len) method documentation states:
Note that this method does not call the write method of its underlying input stream with the same arguments. Subclasses of FilterOutputStream should provide a more efficient implementation of this method.
FilterOutputStream has an underlying OUTPUT stream, not an underlying INPUT stream.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Go to the javadoc: https://docs.oracle.com/javase/8/docs/api/java/io/FilterOutputStream.html#write-byte:A-int-int-
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
You will see the typo
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-8173755 FilterOutputStream.write(byte[],int,int) javadoc correction
-
- Closed
-