Hi guys,
I have the following issue :
Three classes (not actual names
:
- AppStarter
- App
- StringManager
AppStarter creates a new URLClassLoader and uses that to create an instance of App. App has a static field of type StringManager.
I expected that StringManager instance to have the URLClassLoader as it's classloader, but instead it has the AppClassLoader. The App instance does have the URLClassLoader so that's correct.
App relevant code :
Does anyone have any idea why this is happening? Do fields declared as static always use the AppClassLoader?
Thanks!