-
Enhancement
-
Resolution: Fixed
-
P4
-
13, 17, 18
-
None
-
b17
-
generic
-
generic
sun.font.FontManagerFactory uses reflection to load platform specific sun.font.FontManager class from "sun.font.fontmanager" system property.
https://github.com/openjdk/jdk/blob/c81690d7166c32caff6ef3a55fe9b157049e2b56/src/java.desktop/share/classes/sun/font/FontManagerFactory.java#L79
The "sun.font.fontmanager" property can be one of:
"sun.awt.Win32FontManager"
"sun.font.CFontManager"
"sun.awt.X11FontManager"
sun.font.FontManager is internal JDK class and JDK modularization feature prevents a user from providing custom FontManager class.
It would be good to avoid using reflection in this case and create corresponding platform specific classes directly.
https://github.com/openjdk/jdk/blob/c81690d7166c32caff6ef3a55fe9b157049e2b56/src/java.desktop/share/classes/sun/font/FontManagerFactory.java#L79
The "sun.font.fontmanager" property can be one of:
"sun.awt.Win32FontManager"
"sun.font.CFontManager"
"sun.awt.X11FontManager"
sun.font.FontManager is internal JDK class and JDK modularization feature prevents a user from providing custom FontManager class.
It would be good to avoid using reflection in this case and create corresponding platform specific classes directly.
- csr for
-
JDK-8273896 Change the mechanism by which JDK loads the platform-specific FontManager class
-
- Closed
-
- relates to
-
JDK-8130266 Change the mechanism by which JDK loads the platform-specific GraphicsEnvironment class
-
- Resolved
-
-
JDK-8212700 Change the mechanism by which JDK loads the platform-specific AWT Toolkit
-
- Resolved
-