changeset 7427:0bddd4e8bfb6

8008124: Better compliance testing Summary: Better compliance testing Reviewed-by: dfuchs, jfdenise, skoivu, alanb
author dsamersoff
date Sun, 31 Mar 2013 23:47:55 +0400
parents 107f21efda78
children 0d36b1e3e509
files src/share/classes/com/sun/jmx/mbeanserver/Introspector.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java	Sun Mar 31 22:59:14 2013 +0400
+++ b/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java	Sun Mar 31 23:47:55 2013 +0400
@@ -253,6 +253,7 @@
             throws NotCompliantMBeanException {
         if (mbeanInterface == null)
             mbeanInterface = getStandardMBeanInterface(baseClass);
+        ReflectUtil.checkPackageAccess(mbeanInterface);
         MBeanIntrospector<?> introspector = StandardMBeanIntrospector.getInstance();
         return getClassMBeanInfo(introspector, baseClass, mbeanInterface);
     }