377055 Prevent webapp classloader leaks

Use the passed in classloader as an arg to Class.forName, even though the classloader is set in AbstractPreventer as the context classloader.
This commit is contained in:
Jan Bartel 2012-08-10 17:48:03 +10:00
parent 0b4d2e6a0f
commit 6dbef17e44
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ public class Java2DLeakPreventer extends AbstractLeakPreventer
{
try
{
Class.forName("sun.java2d.Disposer");
Class.forName("sun.java2d.Disposer", true, loader);
}
catch (ClassNotFoundException e)
{

View File

@ -36,7 +36,7 @@ public class LDAPLeakPreventer extends AbstractLeakPreventer
{
try
{
Class.forName("com.sun.jndi.LdapPoolManager");
Class.forName("com.sun.jndi.LdapPoolManager", true, loader);
}
catch (ClassNotFoundException e)
{

View File

@ -34,7 +34,7 @@ public class LoginConfigurationLeakPreventer extends AbstractLeakPreventer
{
try
{
Class.forName("javax.security.auth.login.Configuration");
Class.forName("javax.security.auth.login.Configuration", true, loader);
}
catch (ClassNotFoundException e)
{