classloaders: Java class loaders module (three built-in loaders and which modules each owns, parent delegation traced across a two-loader chain, child-first PluginLoader, class identity and the failing (Plugin) cast, Class.forName vs loadClass initialisation, ClassNotFoundException vs NoClassDefFoundError incl. 'Could not initialize class', hot reload, unloading and a Registry leak, context class loader, jcmd VM.classloaders), 18 contract tests
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5pUjAyJuUaNEQqzGJ
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
74da9cd899
commit
cca173d104
@@ -0,0 +1,13 @@
|
||||
|
||||
== loadClass: loads and links, does NOT initialise ==
|
||||
loaded com.acme.Noisy, nothing printed above this line
|
||||
|
||||
== Class.forName(name, false, loader): same, explicitly ==
|
||||
loaded com.acme.Noisy, nothing printed above this line
|
||||
|
||||
== First real use triggers initialisation (static method call) ==
|
||||
>> Noisy static initialiser ran
|
||||
|
||||
== Class.forName(name, true, loader): loads and initialises immediately ==
|
||||
>> Noisy static initialiser ran
|
||||
done
|
||||
Reference in New Issue
Block a user