JDK 10 RFR of 8147615: (fc) FileChannelImpl has no finalizer
Brian Burkhalter
brian.burkhalter at oracle.com
Mon Oct 9 15:53:48 UTC 2017
That’s what I get for attempting to fool with it on a Saturday morning.
On Oct 9, 2017, at 6:48 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
> This just creates a Cleanable that invokes close, you are looking for:
> cleaner.register(this, () -> fdAccess.close(fd));
>
> Once you remove this inner class then you could rename cleanable to "closer" to make it more readable.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20171009/bc49d312/attachment.html>
More information about the nio-dev
mailing list