tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkoli...@apache.org
Subject svn commit: r1056576 - /tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
Date Sat, 08 Jan 2011 00:50:02 GMT
Author: kkolinko
Date: Sat Jan  8 00:50:02 2011
New Revision: 1056576

URL: http://svn.apache.org/viewvc?rev=1056576&view=rev
Log:
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.

Modified:
    tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java

Modified: tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java?rev=1056576&r1=1056575&r2=1056576&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java (original)
+++ tomcat/trunk/java/org/apache/catalina/core/JreMemoryLeakPreventionListener.java Sat Jan
 8 00:50:02 2011
@@ -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 JreMemoryLeakPreventionList
     }
     
     /**
-     * {@link LdapPoolManager} spawns a thread when it is initialized if the 
-     * system property <code>com.sun.jndi.ldap.connect.pool.timeout</code> is
-     * greater than 0.
+     * <code>com.sun.jndi.ldap.LdapPoolManager</code> class spawns a thread when
it
+     * is initialized if the system property
+     * <code>com.sun.jndi.ldap.connect.pool.timeout</code> 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 <code>LdapPoolManager</code>. 
      */
     private boolean ldapPoolProtection = true;
     public boolean isLdapPoolProtection() { return ldapPoolProtection; }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message