提交 7ee0fa5e 编写于 作者: A apetushkov

8245167: Top package in method profiling shows null in JMC

Reviewed-by: neugens
Contributed-by: asemenov@azul.com
上级 64c27293
......@@ -68,8 +68,8 @@ public final class TestClassLoadEvent {
RecordedClass loadedClass = event.getValue("loadedClass");
if (SEARCH_CLASS_NAME.equals(loadedClass.getName())) {
System.out.println(event);
//neither package nor module events are available at 8
//Events.assertClassPackage(loadedClass, SEARCH_PACKAGE_NAME);
Events.assertClassPackage(loadedClass, SEARCH_PACKAGE_NAME);
//module events are not available at 8
//Events.assertClassModule(loadedClass, SEARCH_MODULE_NAME);
RecordedClassLoader initiatingClassLoader = event.getValue("initiatingClassLoader");
Asserts.assertEquals(cl.getClass().getName(), initiatingClassLoader.getType().getName(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册