JDK-8344146 : Remove temporary font file tracking code.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-11-13
  • Updated: 2025-01-20
  • Resolved: 2025-01-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 25
25 b06Fixed
Description
java.awt.Font.createFont() tracks whether the calling code has permission
to create temporary files on its own.
If it does not, then the API limits how much file space can be used.
Since JEP 486 is integrated, application code will always have this permission, so the code is obsolete and can be removed.
Comments
Changeset: 13a17757 Branch: master Author: Phil Race <prr@openjdk.org> Date: 2025-01-13 20:10:19 +0000 URL: https://git.openjdk.org/jdk/commit/13a1775718f329b02cdeb82f9d3f7d878ac5e771
13-01-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22876 Date: 2024-12-24 18:26:06 +0000
09-01-2025

Much of the supporting code for this is in share/classes/sun/font/CreatedFontTracker.java The entire file can probably be deleted.
14-11-2024