Skip to content

Commit

Permalink
Issue #4830 - Add JMX to new Jetty 10 jetty-slf4j-impl.
Browse files Browse the repository at this point in the history
Updates after review.
Fixed test failures.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed May 3, 2020
1 parent d239920 commit f98e2f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ static Object mbeanFor(MBeanContainer container, Object o)
}
klass = klass.getSuperclass();
}
Object mbean = findMetaData(container, klass).newInstance(o);
Object mbean = findMetaData(container, o.getClass()).newInstance(o);
if (mbean instanceof ObjectMBean)
((ObjectMBean)mbean).setMBeanContainer(container);
if (LOG.isDebugEnabled())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ static <T> T walkParentLoggerNames(String startName, Function<String, T> nameFun
else
break;
}
return null;

return nameFunction.apply(Logger.ROOT_LOGGER_NAME);
}

@Override
Expand Down

0 comments on commit f98e2f8

Please sign in to comment.