diff --git a/test/jdk/jfr/event/runtime/TestClassLoadEvent.java b/test/jdk/jfr/event/runtime/TestClassLoadEvent.java index 12b9b407edd80065db571feab9c0ff0aaa1f9ad2..b0719d20cc6cc3be70d8e9c0ea1bcd8df1a10485 100644 --- a/test/jdk/jfr/event/runtime/TestClassLoadEvent.java +++ b/test/jdk/jfr/event/runtime/TestClassLoadEvent.java @@ -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(),