Loading FontManager from sun.font.fontmanager property
Alexander Scherbatiy
alexander.scherbatiy at bell-sw.com
Thu Sep 9 14:07:49 UTC 2021
Hello,
There are two fixes which avoid using reflection during
GraphicsEnvironment and Toolkit platform specific classes loading [1], [2]:
8130266 Change the mechanism by which JDK loads the platform-specific
GraphicsEnvironment class
8212700 Change the mechanism by which JDK loads the platform-specific
AWT Toolkit
The FontManagerFactory class still uses reflection to load platform
specific FontManager class from "sun.font.fontmanager" property.
Should the "sun.font.fontmanager" property be removed in the same way as
for GraphicsEnvironment and Toolkit properties and make FontManger
loading from corresponding PlatformInfo classes?
[1] https://bugs.openjdk.java.net/browse/JDK-8130266
[2] https://bugs.openjdk.java.net/browse/JDK-8212700
[3]
https://github.com/openjdk/jdk/blob/c81690d7166c32caff6ef3a55fe9b157049e2b56/src/java.desktop/share/classes/sun/font/FontManagerFactory.java#L79
Thanks,
Alexander.
More information about the client-libs-dev
mailing list