Details
-
Enhancement
-
Status: Resolved
-
P4
-
Resolution: Fixed
-
None
-
b10
Description
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.
Attachments
Issue Links
- 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
-