--- old/src/java.desktop/share/classes/sun/font/FontManagerFactory.java 2016-04-21 08:39:27.975982868 -0700 +++ new/src/java.desktop/share/classes/sun/font/FontManagerFactory.java 2016-04-21 08:39:27.816062866 -0700 @@ -79,8 +79,9 @@ System.getProperty("sun.font.fontmanager", DEFAULT_CLASS); ClassLoader cl = ClassLoader.getSystemClassLoader(); - Class fmClass = Class.forName(fmClassName, true, cl); - instance = (FontManager) fmClass.newInstance(); + @SuppressWarnings("deprecation") + Object fmObject = Class.forName(fmClassName, true, cl).newInstance(); + instance = (FontManager) fmObject; } catch (ClassNotFoundException | InstantiationException | IllegalAccessException ex) {