Integrated: 8374382: (aio) AsynchronousFileChannel writes wrong content using heap ByteBuffer when position != 0
Alan Bateman
alanb at openjdk.org
Thu Jan 1 07:53:13 UTC 2026
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 pull request has now been integrated.
Changeset: d9bd300c
Author: Alan Bateman <alanb at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/d9bd300c6eddfd30a83e53e7ae03c47ea43a9e08
Stats: 191 lines in 2 files changed: 189 ins; 0 del; 2 mod
8374382: (aio) AsynchronousFileChannel writes wrong content using heap ByteBuffer when position != 0
Reviewed-by: jpai
-------------
PR: https://git.openjdk.org/jdk/pull/29010
More information about the nio-dev
mailing list