changeset 10109:188150b29476

8043152: KSS: javax.swing.plaf.synth.SynthContext Reviewed-by: alexsch, serb
author malenkov
date Fri, 16 May 2014 15:51:57 +0400
parents afacf96b1a88
children 265803091731
files src/share/classes/javax/swing/plaf/synth/SynthContext.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/plaf/synth/SynthContext.java	Fri May 16 15:46:24 2014 +0400
+++ b/src/share/classes/javax/swing/plaf/synth/SynthContext.java	Fri May 16 15:51:57 2014 +0400
@@ -26,6 +26,7 @@
 
 import javax.swing.*;
 import java.util.*;
+import sun.reflect.misc.ReflectUtil;
 
 /**
  * An immutable transient object containing contextual information about
@@ -70,7 +71,7 @@
         }
         if (context == null) {
             try {
-                context = (SynthContext)type.newInstance();
+                context = (SynthContext) ReflectUtil.newInstance(type);
             } catch (IllegalAccessException iae) {
             } catch (InstantiationException ie) {
             }