8212132: (dc) Remove DatagramChannelImpl finalize method
Alan Bateman
Alan.Bateman at oracle.com
Wed Oct 23 19:59:17 UTC 2019
On 23/10/2019 19:21, Martin Buchholz wrote:
>
> :
>
> One possible safety idiom is to consistently have a static method
> returning a lambda (and don't pass in this!) , e.g.
>
> private static Runnable cleanerFor(FileDescriptor fd) { return () ->
> ...; }
The cleaner is on the channel, the cleaning action is to close its file
descriptor, so we need the reference to the channel.
-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20191023/d4e4c0a1/attachment.html>
More information about the nio-dev
mailing list