jenkinsci/jenkins — pull request #788 by ikedam (2013-05-24 13:26:32+00:00)
Title: [FIX JENKINS-4409] release class loaders when each test finishes

When Jenkins stops, `PluginManager#stop` is called. It stops plugins and releases class loaders.
`TestPluginManager`, which is used when running tests, overrides `stop` and does not release class loaders. This results JVM not to release handles of jar files, and in Windows, temporary directories fail to be deleted when test finishes.

This patch removes `TestPluginManager#stop`, and `PluginManager#stop` is called instead.

I'm not sure why `TestPluginManager` masked `PluginManager#stop`. As far as I tested, no errors happen even running multiple test methods, or tests does not get slow.