RFR[8246707]: '(sc) SocketChannel.read/write throws AsynchronousCloseException on closed channel'

Conor Cleary conor.cleary at oracle.com
Mon Aug 10 15:40:43 UTC 2020


Hi Alan,

Based on feedback received from yourself and Chris, I have included the 
following in this latest patch:

  * The Copyright Header was amended to include the start date.
  * The listener socket (ServerSocketChannel) was renamed to "listener"
    from "sr" for clarity.
  * Some class variables now include static declarations as appropriate.

Here are links to the newest patch and related bug...

  * webrev:
    http://cr.openjdk.java.net/~ccleary/issues/webrevs-store/8246707/webrevs/webrev.07/
  * bug: https://bugs.openjdk.java.net/browse/JDK-8246707

Thanks for all the advice so far!

Conor

On 07/08/2020 17:40, Alan Bateman wrote:
> On 07/08/2020 17:14, Conor Cleary wrote:
>>
>> Hi Alan,
>>
>> Your point about assertThrows was correct, it did not fail when a 
>> sub-class of CCE was thrown i.e AsynchronousCloseException. It has 
>> therefore been replaced by catching the exception in as a Throwable 
>> and comparing it with the desired exception using assertEquals. The 
>> correct test behavior was verified by running the tests both with and 
>> without the changes to SocketChannelImpl.
>>
>> Other minor changes were made as per your feedback related to 
>> SocketChannelImpl.
>>
>>   * webrev:
>>     http://cr.openjdk.java.net/~ccleary/issues/webrevs-store/8246707/webrevs/webrev.06/
>>   * bug: https://bugs.openjdk.java.net/browse/JDK-8246707
>>
> Thanks for the update. The changes to SocketChannelImpl look good 
> except the copyright header where you've removed the start date.
>
> The test is mostly okay too but might be clearer to rename the 
> listener socket to "listener" rather than "sr".
>
> -Alan.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20200810/a7fbb8c5/attachment.htm>


More information about the nio-dev mailing list