RFR: JDK-8260694: (fc) Add apiNote to FileChannel.transferFrom to better describe "no bytes available" case [v5]
Alan Bateman
alanb at openjdk.java.net
Thu Feb 4 14:14:39 UTC 2021
On Thu, 4 Feb 2021 12:05:06 GMT, Hamlin Li <mli at openjdk.org> wrote:
>> We'd better put more detailed messages in FileChannel.transferFrom/transferTo that it will not return -1, as we met several cases where developers of framework/program assume that it will return -1 on some error conditions, e.g. EOF of src Channel of transferFrom.
>>
>> please check more details in JDK-8260486, and discussion in https://mail.openjdk.java.net/pipermail/nio-dev/2021-January/008094.html
>
> Hamlin Li has updated the pull request incrementally with one additional commit since the last revision:
>
> JDK-8260694: (fc) Add apiNote to FileChannel.transferFrom to better describe "no bytes available" case
Marked as reviewed by alanb (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/2329
More information about the nio-dev
mailing list