JDK-8349008 : Remove temporary font file tracking code
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: jfx24
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-01-30
  • Updated: 2025-02-07
  • Resolved: 2025-02-03
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.
Other
jfx25 b03Fixed
Related Reports
Blocks :  
Blocks :  
Relates :  
Description
The JavaFX FontFileWriter.FontTracker class is used by FontFileWriter and PrismFontFile to optionally track and limit the amount of temporary font storage allowed when a security manager is present.

After the removal of the security manager code and the fix for JDK-8344114 (to remove the FontFactory::hasPermission and FontFileWriter::hasTempPermission methods), this is dead code that cannot possibly be reached. All font methods are now called with "tracked" set to "false" meaning that we will never create an instance of a FontTracker.

We should remove the FontTracker class and the "tracked" field and method arguments.

See also JDK-8344146 for a similar bug in client-libs that was recently fixed.
Comments
Changeset: 8a5e488a Branch: master Author: Lukasz Kostyra <lkostyra@openjdk.org> Date: 2025-02-03 17:56:15 +0000 URL: https://git.openjdk.org/jfx/commit/8a5e488a5d76bd40a25488b1604d3f53e3d22be8
03-02-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1693 Date: 2025-01-31 12:37:04 +0000
31-01-2025