posted 20 years ago
Check out Class.getClassLoader()
The default behaviour for ClassLoaders is to inherit a parent ClassLoader, and not re-load any Class already loaded by that ClassLoader. They also allow the parent to load it first to allow other ClassLOaders with tah same parent to share the same Class instance.
BUT, you can always write your own ClassLoader that breaks either rule (not recommended for the inexperienced), and if B and C inherit from A, then B and C can both load a Class that is not loaded by A.
...but with another content...
I assume you're referring to static content in the Class? If the Class is one you've written, it may be easier to rewrite the Class to remove this restriction. It's much easier than introducing ClassLoaders into code that doesn't need it.
dave