Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
limitations of Class.forName
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Josip Almasi, post: 5157658"] Oh, but there's more. Class.equals() will fail on classes loaded by different classloaders, as will Object.equals(). That is, after you extend URLClassLoader as Arne said:) Then, you can't unload a class just like that, as class loader keeps references to all loaded classes. You need to unload that ClassLoader too. That is, if you wish to reload plugins without jvm restart. With custom URLClassLoader, watch carefully not to break specified delegation model. OK then you wish only to customize application classloader. Note that in JEE containers, classloaders have another important function - context isolation. Regards... [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
limitations of Class.forName
Top