8026172: Enhance UI Management
authormalenkov
Wed, 16 Oct 2013 13:26:05 +0400
changeset 22328 5a7d30033602
parent 22327 0939d1a7e612
child 22329 4cd45450d07c
8026172: Enhance UI Management Reviewed-by: art, skoivu
jdk/src/share/classes/javax/swing/SwingUtilities.java
--- a/jdk/src/share/classes/javax/swing/SwingUtilities.java	Tue Oct 15 18:15:46 2013 -0700
+++ b/jdk/src/share/classes/javax/swing/SwingUtilities.java	Wed Oct 16 13:26:05 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.*;
@@ -1872,6 +1870,7 @@
 
 
     static Class<?> loadSystemClass(String className) throws ClassNotFoundException {
+        ReflectUtil.checkPackageAccess(className);
         return Class.forName(className, true, Thread.currentThread().
                              getContextClassLoader());
     }