8008124: Better compliance testing
Summary: Better compliance testing
Reviewed-by: dfuchs, jfdenise, skoivu, alanb
--- 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);
}