Integrated: JDK-8260694: (fc) Clarify FileChannel.transferFrom to better describe "no bytes available" case
Hamlin Li
mli at openjdk.java.net
Fri Feb 19 12:38:47 UTC 2021
On Mon, 1 Feb 2021 02:26:23 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
This pull request has now been integrated.
Changeset: a180a386
Author: Hamlin Li <mli at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/a180a386
Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
8260694: (fc) Clarify FileChannel.transferFrom to better describe "no bytes available" case
Reviewed-by: alanb
-------------
PR: https://git.openjdk.java.net/jdk/pull/2329
More information about the nio-dev
mailing list