changeset 6876:cd8026b9d403

8026172: Enhance UI Management Reviewed-by: art, skoivu
author malenkov
date Wed, 16 Oct 2013 14:02:44 +0400
parents 2197764aee8b
children 5c20ac773584
files src/share/classes/javax/swing/SwingUtilities.java
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/SwingUtilities.java	Tue Oct 15 20:15:20 2013 -0700
+++ b/src/share/classes/javax/swing/SwingUtilities.java	Wed Oct 16 14:02:44 2013 +0400
@@ -24,6 +24,7 @@
  */
 package javax.swing;
 
+import sun.reflect.misc.ReflectUtil;
 import sun.swing.SwingUtilities2;
 import sun.swing.UIAction;
 
@@ -33,9 +34,6 @@
 import java.awt.event.*;
 import java.awt.dnd.DropTarget;
 
-import java.util.Vector;
-import java.util.Hashtable;
-
 import java.lang.reflect.*;
 
 import javax.accessibility.*;
@@ -1871,6 +1869,7 @@
 
 
     static Class<?> loadSystemClass(String className) throws ClassNotFoundException {
+        ReflectUtil.checkPackageAccess(className);
         return Class.forName(className, true, Thread.currentThread().
                              getContextClassLoader());
     }