RFR: 8363889: Update sun.print.PrintJob2D to use Disposer [v3]

Alexander Zvegintsev azvegint at openjdk.org
Sat Aug 2 00:27:55 UTC 2025


On Fri, 1 Aug 2025 21:46:37 GMT, Phil Race <prr at openjdk.org> wrote:

>> As laid out in the JBS issue, this updates the java.awt.PrintJob implementation to use a delegate which can be disposed instead of relying on finalize().
>> 
>> PrintJob.finalize() is not being removed, and won't be removed until there is a more definite plan for completely removing the finalize() mechanism.
>
> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8363889

src/java.desktop/share/classes/sun/print/PrintJob2D.java line 127:

> 125: 
> 126:         public void dispose() {
> 127:             Thread.dumpStack();

Suggestion:

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26432#discussion_r2249033958


More information about the client-libs-dev mailing list