7186948: Improve Swing data validation
authorrupashka
Tue, 16 Oct 2012 14:13:39 +0400
changeset 16073 da699ce2f8d2
parent 16072 6e0f33f8f99d
child 16074 97593512057a
7186948: Improve Swing data validation Reviewed-by: art, ahgross
jdk/src/share/classes/javax/swing/UIDefaults.java
--- a/jdk/src/share/classes/javax/swing/UIDefaults.java	Mon Oct 15 19:00:13 2012 +0400
+++ b/jdk/src/share/classes/javax/swing/UIDefaults.java	Tue Oct 16 14:13:39 2012 +0400
@@ -677,6 +677,8 @@
         try {
             String className = (String)get(uiClassID);
             if (className != null) {
+                ReflectUtil.checkPackageAccess(className);
+
                 Class cls = (Class)get(className);
                 if (cls == null) {
                     if (uiClassLoader == null) {