changeset 7959:c7c39320bc6c

7186948: Improve Swing data validation Reviewed-by: art, ahgross
author rupashka
date Tue, 16 Oct 2012 14:13:39 +0400
parents 24a3eb2f0553
children 3c8d0085b094
files src/share/classes/javax/swing/UIDefaults.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/UIDefaults.java	Mon Oct 15 19:00:13 2012 +0400
+++ b/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) {