RFR: 8273581: Change the mechanism by which JDK loads the platform-specific FontManager class [v5]

Alexander Scherbatiy alexsch at openjdk.java.net
Fri Sep 17 12:57:18 UTC 2021


> FontManagerFactory class uses reflection to load platform specific FontManager classes from "sun.font.fontmanager" property.
> 
> Fix proposes creating FontManager platform specific classes directly in the similar way as it has been already done for GraphicsEnvironment and AWT Toolkit ([JDK-8130266](https://bugs.openjdk.java.net/browse/JDK-8130266) and [JDK-8212700](https://bugs.openjdk.java.net/browse/JDK-8212700)).
> 
> FontManager is internal jdk class. It is placed in `sun.font` package and java modularization encapsulates  FontManager from subclassing and using by a user.
> 
> The fix reuses PlatformGraphicsInfo to create FontManager platform specific classes. May be FontManager creation code needs to be placed in its own info classes.

Alexander Scherbatiy has updated the pull request incrementally with one additional commit since the last revision:

  Change Solaris default implementation to Mac OS in FontManagerFactory comment

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5517/files
  - new: https://git.openjdk.java.net/jdk/pull/5517/files/42276387..91109b34

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5517&range=04
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5517&range=03-04

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5517.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5517/head:pull/5517

PR: https://git.openjdk.java.net/jdk/pull/5517



More information about the client-libs-dev mailing list