--- old/src/java.desktop/share/classes/sun/font/FontManagerFactory.java 2016-04-27 14:30:50.993155071 -0700 +++ new/src/java.desktop/share/classes/sun/font/FontManagerFactory.java 2016-04-27 14:30:50.833155065 -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) {