8026172: Enhance UI Management
Reviewed-by: art, skoivu
This commit is contained in:
parent
c1b27f86f3
commit
da20231112
@ -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.*;
|
||||
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 @@ public class SwingUtilities implements SwingConstants
|
||||
|
||||
|
||||
static Class<?> loadSystemClass(String className) throws ClassNotFoundException {
|
||||
ReflectUtil.checkPackageAccess(className);
|
||||
return Class.forName(className, true, Thread.currentThread().
|
||||
getContextClassLoader());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user