[OpenJDK 2D-Dev] Cleaner usage in java2 / awt

Laurent Bourgès bourges.laurent at gmail.com
Mon Jan 11 09:34:01 UTC 2016


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.race at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160111/8cf287f9/attachment.html>


More information about the 2d-dev mailing list