jdk/src/share/classes/sun/font/FontManagerFactory.java
changeset 10355 a976ff46116b
parent 7668 d4a77089c587
child 12047 320a714614e9
equal deleted inserted replaced
10354:5257798c26d0 10355:a976ff46116b
    76                             System.getProperty("sun.font.fontmanager",
    76                             System.getProperty("sun.font.fontmanager",
    77                                                DEFAULT_CLASS);
    77                                                DEFAULT_CLASS);
    78                     ClassLoader cl = ClassLoader.getSystemClassLoader();
    78                     ClassLoader cl = ClassLoader.getSystemClassLoader();
    79                     Class fmClass = Class.forName(fmClassName, true, cl);
    79                     Class fmClass = Class.forName(fmClassName, true, cl);
    80                     instance = (FontManager) fmClass.newInstance();
    80                     instance = (FontManager) fmClass.newInstance();
    81                 } catch (ClassNotFoundException ex) {
    81                 } catch (ClassNotFoundException |
    82                     InternalError err = new InternalError();
    82                          InstantiationException |
    83                     err.initCause(ex);
    83                          IllegalAccessException ex) {
    84                     throw err;
    84                     throw new InternalError(ex);
    85 
    85 
    86                 } catch (InstantiationException ex) {
       
    87                     InternalError err = new InternalError();
       
    88                     err.initCause(ex);
       
    89                     throw err;
       
    90 
       
    91                 } catch (IllegalAccessException ex) {
       
    92                     InternalError err = new InternalError();
       
    93                     err.initCause(ex);
       
    94                     throw err;
       
    95                 }
    86                 }
    96                 return null;
    87                 return null;
    97             }
    88             }
    98         });
    89         });
    99 
    90