RFR: 8287580: (se) CancelledKeyException during channel registration [v2]
Brian Burkhalter
bpb at openjdk.java.net
Thu Jun 2 22:14:30 UTC 2022
On Thu, 2 Jun 2022 18:39:24 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8287580: Add catch to AbstractSelectableChannel, remove remove() from SelectorImpl, open only one SocketChannel in test
>
> src/java.base/share/classes/java/nio/channels/spi/AbstractSelectableChannel.java line 236:
>
>> 234: k.interestOps(ops);
>> 235: } catch (CancelledKeyException ignored) {
>> 236: }
>
> The register method is specified to throw CKE "If this channel is currently registered with the given selector but the corresponding key has already been cancelled". So we shouldn't be changing anything in this class.
Reverted in 98bcd22e8ba60c7499fab332f943616bb88b03f5.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8978
More information about the nio-dev
mailing list