RFR: 8029370: (fc) FileChannel javadoc not clear for cases where position == size

Brian Burkhalter bpb at openjdk.org
Thu Feb 23 22:27:05 UTC 2023


On Thu, 23 Feb 2023 21:24:40 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Modify the specifications of the `java.nio.channels.FileChannel` methods `transferTo`, `read(ByteBuffer,long)`, and `write(ByteBuffer,long)` to state "greater than or equal to the file's current size" with respect to the given position instead of "greater than the file's current size."

The modified doc lines in this PR are left unwrapped for reviewing clarity. They can be fixed before integration.

-------------

PR: https://git.openjdk.org/jdk/pull/12735


More information about the nio-dev mailing list