If the read/write methods are called with a thread-confined buffer the I/O operation is initiated and fails. It would be better to throw IAE in the initiating thread so it works like calling a read method with a read-only buffer.
- csr for
-
JDK-8359125 (aio) AsynchronousByteChannel.read/write should throw IAE if buffer is thread-confined
-
- Closed
-
- relates to
-
JDK-8357847 (ch) AsynchronousFileChannel implementations should support FFM Buffers
-
- In Progress
-
- links to
-
Commit(master) openjdk/jdk/9aeacf2d
-
Review(master) openjdk/jdk/25691