public TestClasses() {
testClassPrivate = new TestClassPrivate();
testClassPrivateStatic = new TestClassPrivateStatic();
}
// Classes TestClassPrivate and TestClassPrivateStatic should be loaded at // the same time // as the base class TestClasses privateclass TestClassPrivate {
}
privatestaticclass TestClassPrivateStatic {
}
protectedclass TestClassProtected {
}
protectedstaticclass TestClassProtectedStatic {
}
// When loadClasses() is run, 3 new classes should be loaded. publicvoid loadClasses() throws ClassNotFoundException { final ClassLoader cl = getClass().getClassLoader();
cl.loadClass("jdk.jfr.event.runtime.TestClasses$TestClassProtected1");
cl.loadClass("jdk.jfr.event.runtime.TestClasses$TestClassProtectedStatic1");
}
protectedclass TestClassProtected1 {
}
protectedstaticclass TestClassProtectedStatic1 { protected TestClassProtectedStaticInner testClassProtectedStaticInner = new TestClassProtectedStaticInner();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.