-
Enhancement
-
Resolution: Fixed
-
P4
-
None
-
b10
The javadoc of InputStream.transferTo only briefly states the expectations of the return value:
> @return the number of bytes transferred
It's possible that the inpustream instance could transfer more data than what can be returned as a long value.
It would help to have the API specify what the expectations are in such cases.
> @return the number of bytes transferred
It's possible that the inpustream instance could transfer more data than what can be returned as a long value.
It would help to have the API specify what the expectations are in such cases.
- csr for
-
JDK-8297785 InputStream.transferTo() method should specify what the return value should be when the number of bytes transfered is larger than Long.MAX_VALUE
-
- Closed
-
- relates to
-
JDK-8322141 SequenceInputStream.transferTo should not return as soon as Long.MAX_VALUE bytes have been transferred
-
- Resolved
-