On Fri, 16 Oct 2026 15:32:52 GMT, Benjamin Peterson <[email protected]> 
wrote:

> Is there a different bug report than 
> https://bugs.openjdk.org/browse/JDK-8387022? That one mentions 
> `ChannelInputStream`, but I don't see a discusison of the 
> `ReadableByteChannel`/`SelectableChannel` nuances.

I'm not aware of other JBS issue on this topic. SelectableChannel specifies a 
"blocking lock" that can be used to create blocking adaptors. 
ChannelInputStream uses it. The ReadableByteChannel spec is also clear "It is 
guaranteed, however, that if a channel is in blocking mode and there is at 
least one byte remaining in the buffer then this method will block until at 
least one byte is read.".

-------------

PR Comment: https://git.openjdk.org/jdk/pull/33401#issuecomment-6220824856

Reply via email to