On Fri, 16 Oct 2026 13:40:31 GMT, Benjamin Peterson <[email protected]> wrote:
> Is `Channels.newInputStream` on a non-blocking channel a useful construction? > The doc of `Channels.newInputStream` specifies `read` will throw if the > channel is in non-blocking mode. InputStream can't be reliably implemented on a non-blocking source, at least not without retry under the covers in order to adhere to the contract of the read methods. For SelectableChannel configured non-blocking then the implementation can eagerly throw IBME. The context for the bug report is ReadableByteChannel that is not a SelectableChannel. ------------- PR Comment: https://git.openjdk.org/jdk/pull/33401#issuecomment-6217412662
