AsynchronousSocketChannel still throws unspecified exception

Alan Bateman Alan.Bateman at oracle.com
Tue Jun 14 01:45:00 PDT 2011


cowwoc wrote:
> :
> Also, I think you should push very hard to get this fixed in JDK7. I'd be
> very surprised if Oracle lets you change this part of the specification in
> JDK8 because doing so would break backwards-compatibility for existing
> implementations. Better to fix it now before the final spec is published.
>
>   
I've created this bug to track it:

7054403: (aio spec) IllegalStateExcepiton should be thrown if I/O 
operation attempted after timeout

It's unfortunate that this got forgotten but I think we can fix this 
early in jdk8. It helps that the current implementation already throws 
IllegalStateException. Furthermore, AsynchronousSocketChannel cannot be 
implemented in isolation as it is tied to an 
AsynchronousChannelProvider. This means the number of implementations 
will likely be very few. Again apologies about this, it was my fault 
that this got forgotten.

-Alan.





More information about the nio-dev mailing list