# HG changeset patch # User rupashka # Date 1350382419 -14400 # Node ID da699ce2f8d2a19ba0f36df1067bb1738537b660 # Parent 6e0f33f8f99dfb5908a41f6b2f0aed56a3756504 7186948: Improve Swing data validation Reviewed-by: art, ahgross diff -r 6e0f33f8f99d -r da699ce2f8d2 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) {