jdk/src/java.desktop/share/classes/sun/java2d/pipe/RenderingEngine.java
changeset 42208 7c1017f0ade5
parent 40120 ac96fa31cdf3
child 47126 188ef162f019
equal deleted inserted replaced
42207:c8ba5ae03456 42208:7c1017f0ade5
   125             new GetPropertyAction("sun.java2d.renderer");
   125             new GetPropertyAction("sun.java2d.renderer");
   126         String reClass = AccessController.doPrivileged(gpa);
   126         String reClass = AccessController.doPrivileged(gpa);
   127         if (reClass != null) {
   127         if (reClass != null) {
   128             try {
   128             try {
   129                 Class<?> cls = Class.forName(reClass);
   129                 Class<?> cls = Class.forName(reClass);
   130                 reImpl = (RenderingEngine) cls.newInstance();
   130                 reImpl = (RenderingEngine) cls.getConstructor().newInstance();
   131             } catch (ReflectiveOperationException ignored0) {
   131             } catch (ReflectiveOperationException ignored0) {
   132             }
   132             }
   133         }
   133         }
   134         if (reImpl == null) {
   134         if (reImpl == null) {
   135             final String marlinREClass = "sun.java2d.marlin.MarlinRenderingEngine";
   135             final String marlinREClass = "sun.java2d.marlin.MarlinRenderingEngine";
   136             try {
   136             try {
   137                 Class<?> cls = Class.forName(marlinREClass);
   137                 Class<?> cls = Class.forName(marlinREClass);
   138                 reImpl = (RenderingEngine) cls.newInstance();
   138                 reImpl = (RenderingEngine) cls.getConstructor().newInstance();
   139             } catch (ReflectiveOperationException ignored1) {
   139             } catch (ReflectiveOperationException ignored1) {
   140             }
   140             }
   141         }
   141         }
   142 
   142 
   143         if (reImpl == null) {
   143         if (reImpl == null) {