< prev index next >
src/java.desktop/share/classes/sun/font/FontManagerFactory.java
Print this page
*** 78,91 ****
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);
}
return null;
}
--- 78,90 ----
String fmClassName =
System.getProperty("sun.font.fontmanager",
DEFAULT_CLASS);
ClassLoader cl = ClassLoader.getSystemClassLoader();
Class<?> fmClass = Class.forName(fmClassName, true, cl);
! instance =
! (FontManager) fmClass.getDeclaredConstructor().newInstance();
! } catch (ReflectiveOperationException ex) {
throw new InternalError(ex);
}
return null;
}
< prev index next >