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:
Joakim Erdfelt 2018-11-11 19:27:45 -06:00 committed by GitHub
commit fc5f21bd48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);