equal
deleted
inserted
replaced
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) { |