changeset 16073:da699ce2f8d2

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