From: kkolinko Date: Sat, 8 Jan 2011 00:50:02 +0000 (+0000) Subject: Followup to r1056553 X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=f379f08697bc40a6c1fd606271a1ab06de319c9b;p=tomcat7.0 Followup to r1056553 There should not be "import com.sun.jndi.ldap.LdapPoolManager;" as we must not depend on that class at build time. Actually the import was used by JavaDoc comments only. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1056576 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java b/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java index 1b2b3699d..942a69ae1 100644 --- a/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java +++ b/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java @@ -35,8 +35,6 @@ import org.apache.juli.logging.Log; import org.apache.juli.logging.LogFactory; import org.apache.tomcat.util.res.StringManager; -import com.sun.jndi.ldap.LdapPoolManager; - /** * Provide a workaround for known places where the Java Runtime environment can * cause a memory leak or lock files. @@ -165,12 +163,12 @@ public class JreMemoryLeakPreventionListener implements LifecycleListener { } /** - * {@link LdapPoolManager} spawns a thread when it is initialized if the - * system property com.sun.jndi.ldap.connect.pool.timeout is - * greater than 0. + * com.sun.jndi.ldap.LdapPoolManager class spawns a thread when it + * is initialized if the system property + * com.sun.jndi.ldap.connect.pool.timeout is greater than 0. * That thread inherits the context class loader of the current thread, so - * that there my be a web application class loader leak if the web app - * is the first to use {@link LdapPoolManager}. + * that there may be a web application class loader leak if the web app + * is the first to use LdapPoolManager. */ private boolean ldapPoolProtection = true; public boolean isLdapPoolProtection() { return ldapPoolProtection; }