RFR: 8287580: (se) CancelledKeyException during channel registration [v2]

Brian Burkhalter bpb at openjdk.java.net
Thu Jun 2 18:28:21 UTC 2022


On Thu, 2 Jun 2022 15:13:01 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>>> No failure, it was for symmetry with the other catch block; will remove.
>> 
>> Thanks. The other catch is the closed Selector case. The caller has to remove the key from the key set as otherwise it might get left there. We don't have that issue with the cancelled key case.
>
>> Thanks
> 
> I will remove the `remove()` in the next commit.

Removed in 925336449bfda90791b7e289d0008da4a9bc87a6.

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

PR: https://git.openjdk.java.net/jdk/pull/8978


More information about the nio-dev mailing list