RFR: 8363889: Update sun.print.PrintJob2D to use Disposer

Phil Race prr at openjdk.org
Tue Jul 22 21:49:07 UTC 2025


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.

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

Commit messages:
 - 8363889

Changes: https://git.openjdk.org/jdk/pull/26432/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26432&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8363889
  Stats: 1138 lines in 2 files changed: 2 ins; 1112 del; 24 mod
  Patch: https://git.openjdk.org/jdk/pull/26432.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26432/head:pull/26432

PR: https://git.openjdk.org/jdk/pull/26432


More information about the client-libs-dev mailing list