Merge pull request #3093 from eclipse/jetty-9.4.x-3092-jmx_classloader
Fixes #3092 - Wrong classloader used to load *MBean classes.
This commit is contained in:
commit
fc5f21bd48
|
@ -225,7 +225,7 @@ public class MBeanContainer implements Container.InheritedListener, Dumpable, De
|
|||
String mName = pName + ".jmx." + cName + "MBean";
|
||||
try
|
||||
{
|
||||
Class<?> mbeanClass = Loader.loadClass(mName);
|
||||
Class<?> mbeanClass = Loader.loadClass(klass, mName);
|
||||
Constructor<?> constructor = ModelMBean.class.isAssignableFrom(mbeanClass)
|
||||
? mbeanClass.getConstructor()
|
||||
: mbeanClass.getConstructor(Object.class);
|
||||
|
|
Loading…
Reference in New Issue