changeset 5948:c14aa930b032

8008124: Better compliance testing Summary: Better compliance testing Reviewed-by: dfuchs, jfdenise, skoivu, alanb
author dsamersoff
date Thu, 28 Mar 2013 23:39:28 +0400
parents 56f01b89d8b8
children cc656d61e713
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	Thu Mar 28 23:01:08 2013 +0400
+++ b/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java	Thu Mar 28 23:39:28 2013 +0400
@@ -255,6 +255,7 @@
             throws NotCompliantMBeanException {
         if (mbeanInterface == null)
             mbeanInterface = getStandardMBeanInterface(baseClass);
+        ReflectUtil.checkPackageAccess(mbeanInterface);
         MBeanIntrospector<?> introspector = StandardMBeanIntrospector.getInstance();
         return getClassMBeanInfo(introspector, baseClass, mbeanInterface);
     }