8008124: Better compliance testing
authordsamersoff
Sun, 31 Mar 2013 23:47:55 +0400
changeset 18218 42b9377e6462
parent 18217 94269d97fc96
child 18219 d4cd832b9802
8008124: Better compliance testing Summary: Better compliance testing Reviewed-by: dfuchs, jfdenise, skoivu, alanb
jdk/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java
--- a/jdk/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java	Sun Mar 31 22:59:14 2013 +0400
+++ b/jdk/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);
     }