Phil, I read again the thread RFR 9: JDK-8146028 and it is still in progress ie it is not yet pushed.
Few comments below: 2016-01-08 23:16 GMT+01:00 Phil Race <philip.r...@oracle.com>: > CleanerFactory's class comment says it is for use "within OpenJDK modules", > so I don't think it is expected we need to create a separate one for each > module but I have not read enough of the review threads etc to be sure > if there was any caveat to that. > Agreed, it seems the scope changed during the review ! > Assuming it is OK I think for such new usage it would make sense to use the > singleton Cleaner. > I think you will have to add a qualified exported to java.desktop as I do > not > suppose one exists right now. > I will wait the new jdk internal Cleaner to be available in jdk9/client repository and then will use it instead of the java.lang.ref.Cleaner. Of course, it must be tested with jake ! Cheers, Laurent