< prev index next >

src/java.desktop/share/classes/sun/font/FontManagerFactory.java

Print this page

        

*** 77,88 **** try { String fmClassName = System.getProperty("sun.font.fontmanager", DEFAULT_CLASS); ClassLoader cl = ClassLoader.getSystemClassLoader(); ! Class<?> fmClass = Class.forName(fmClassName, true, cl); ! instance = (FontManager) fmClass.newInstance(); } catch (ClassNotFoundException | InstantiationException | IllegalAccessException ex) { throw new InternalError(ex); --- 77,89 ---- try { String fmClassName = System.getProperty("sun.font.fontmanager", DEFAULT_CLASS); ClassLoader cl = ClassLoader.getSystemClassLoader(); ! @SuppressWarnings("deprecation") ! Object fmObject = Class.forName(fmClassName, true, cl).newInstance(); ! instance = (FontManager) fmObject; } catch (ClassNotFoundException | InstantiationException | IllegalAccessException ex) { throw new InternalError(ex);
< prev index next >