From f4069d137480e97d5d37ac5df2ac96dae9611684 Mon Sep 17 00:00:00 2001 From: Dmitry Samersoff Date: Sun, 31 Mar 2013 23:47:55 +0400 Subject: [PATCH] 8008124: Better compliance testing Better compliance testing Reviewed-by: dfuchs, jfdenise, skoivu, alanb --- jdk/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jdk/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java b/jdk/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java index 78117debaeb..b2abc521b0f 100644 --- a/jdk/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java +++ b/jdk/src/share/classes/com/sun/jmx/mbeanserver/Introspector.java @@ -253,6 +253,7 @@ public class Introspector { throws NotCompliantMBeanException { if (mbeanInterface == null) mbeanInterface = getStandardMBeanInterface(baseClass); + ReflectUtil.checkPackageAccess(mbeanInterface); MBeanIntrospector introspector = StandardMBeanIntrospector.getInstance(); return getClassMBeanInfo(introspector, baseClass, mbeanInterface); }