提交 a8dc037a 编写于 作者: M malenkov

8043152: KSS: javax.swing.plaf.synth.SynthContext

Reviewed-by: alexsch, serb
上级 416cb0df
...@@ -26,6 +26,7 @@ package javax.swing.plaf.synth; ...@@ -26,6 +26,7 @@ package javax.swing.plaf.synth;
import javax.swing.*; import javax.swing.*;
import java.util.*; import java.util.*;
import sun.reflect.misc.ReflectUtil;
/** /**
* An immutable transient object containing contextual information about * An immutable transient object containing contextual information about
...@@ -70,7 +71,7 @@ public class SynthContext { ...@@ -70,7 +71,7 @@ public class SynthContext {
} }
if (context == null) { if (context == null) {
try { try {
context = (SynthContext)type.newInstance(); context = (SynthContext) ReflectUtil.newInstance(type);
} catch (IllegalAccessException iae) { } catch (IllegalAccessException iae) {
} catch (InstantiationException ie) { } catch (InstantiationException ie) {
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册