This page seems to support my opinion about class unloading. Sweet… Now all I need to do is try doing it. 😀
Just been fooling around a bit. I like what the API docs say about the infamous classloader. Basicly, when I want to dynamicly load a class into my application, I can just do it myself with a custom classloader. I believe that when this classloader has been marked for collection that also all loaded classes of the custom classloader will be deleted from memory.
Would be very nice when that would be true. I can imagine some nifty tricks with this. Like injecting code into the application while the app is running. Would be very usefull, especially in distributed scenario’s. Or to enable changable runtime analysis code into a application. Perhaps it doesn’t sound usefull of the bat, but it will score you some kudos on any project anyway.