> Not always. Will be true until something else has a reference to the
> classloader, like a provider Class for instance.
> In other words it can just prevent the whole webapp to be garbage collected.

A provider class Is not supposed to hold an explicit reference to the
classLoader.

That would be an implementation bug. If the provider is holding a
classLoader reference it would prevent the GC on the WAR /
redeployment no matter what.

I can write a testcase preventing issues. I had written one for
commons a few years ago.



What is your other solution?




What is your other solution?

Reply via email to