NetworkChannel.getOption(...) throws java.lang.AssertionError: Option not found

Alan Bateman Alan.Bateman at oracle.com
Wed Aug 8 17:48:21 UTC 2018



On 08/08/2018 18:18, Norman Maurer wrote:
>
> It throws for ServerSocketChannel. The option that throws here is 
> IP_TOS which is returned by supportedOptions().
>
The set of options returned by ServerSocketChannel::supportedOptions 
should not include IP_TOS. It seems the SSC implementation has partial 
support in that it can set the option but can't read it. Seems to date 
back to JDK 7.  I'll create a bug to remove the references to IP_TOS 
from the SSC implementation.

-Alan


More information about the nio-dev mailing list