Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8358958

(aio) AsynchronousByteChannel.read/write should throw IAE if buffer is thread-confined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 22, 25
    • core-libs
    • None
    • master

      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.

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: