RFR: 8374382: (aio) AsynchronousFileChannel writes wrong content using heap ByteBuffer when position != 0
Jaikiran Pai
jpai at openjdk.org
Wed Dec 31 15:34:00 UTC 2025
On Wed, 31 Dec 2025 07:08:40 GMT, Alan Bateman <alanb at openjdk.org> wrote:
> On Windows only, if AsynchronousFileChannel is used with a heap ByteBuffer with a non-0 buffer position then the AsynchronousFileChannel read/write methods don't work correctly when the buffer is "substituted" for the underlying I/O operation.
>
> This is a regression in JDK 26 after JDK-8357847, missed as we didn't have tests that exercise this scenario.
This looks good to me.
-------------
Marked as reviewed by jpai (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29010#pullrequestreview-3621058146
More information about the nio-dev
mailing list