RFR JDK-8024832: (so) ServerSocketChannel.socket().accept() throws IllegalBlockingModeException if not bound

Alan Bateman Alan.Bateman at oracle.com
Tue May 27 10:03:23 UTC 2014


On 27/05/2014 10:40, Pavel Rappo wrote:
> Hi everyone,
>
> Could you please review my change for JDK-8024832?
>
> http://cr.openjdk.java.net/~prappo/8024832/webrev.00/
>
Can you try just removing the isBound check? I ask because ssc.accept() 
will throw NotYetBoundException if the ServerSocketChannel is not bound 
and that should get mapped to the SocketException to match ServerSocket 
behavior.

-Alan.


More information about the nio-dev mailing list