jdk/src/share/classes/sun/java2d/pipe/RenderingEngine.java
changeset 10087 e1bbe4597795
parent 9035 1255eb81cc2f
child 11080 7e18e343964e
equal deleted inserted replaced
10086:a6dbbf4eb30f 10087:e1bbe4597795
   125                         System.getProperty("sun.java2d.renderer", ductusREClass);
   125                         System.getProperty("sun.java2d.renderer", ductusREClass);
   126                     if (reClass.equals(ductusREClass)) {
   126                     if (reClass.equals(ductusREClass)) {
   127                         try {
   127                         try {
   128                             Class cls = Class.forName(ductusREClass);
   128                             Class cls = Class.forName(ductusREClass);
   129                             return cls.newInstance();
   129                             return cls.newInstance();
   130                         } catch (ClassNotFoundException x) {
   130                         } catch (ReflectiveOperationException ignored) {
   131                             // not found
   131                             // not found
   132                         } catch (IllegalAccessException x) {
       
   133                             // should not reach here
       
   134                         } catch (InstantiationException x) {
       
   135                             // should not reach here
       
   136                         }
   132                         }
   137                     }
   133                     }
   138 
   134 
   139                     ServiceLoader<RenderingEngine> reLoader =
   135                     ServiceLoader<RenderingEngine> reLoader =
   140                         ServiceLoader.loadInstalled(RenderingEngine.class);
   136                         ServiceLoader.loadInstalled(RenderingEngine.class);