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:
parent
0b4d2e6a0f
commit
6dbef17e44
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue