RFR 9: 8138696 : java.lang.ref.Cleaner - an easy to use alternative to finalization
Roger Riggs
Roger.Riggs at Oracle.com
Mon Dec 14 22:38:14 UTC 2015
Hi,
The complexity of using Lambda for cleaning functions are too hard to
explain in depth
in the context of an example. A more conservative approach is to show
using a static nested
class. A lambda savvy developer can correctly determine how to avoid
the pitfalls, and others
should stick to the static nested class.
[1]http://cr.openjdk.java.net/~rriggs/webrev-cleaner-8138696/
[2]http://cr.openjdk.java.net/~rriggs/cleaner-doc/index.html
Thanks, Roger
p.s. last call for comments
More information about the core-libs-dev
mailing list