1
0
This commit is contained in:
Gary Gregory
2023-11-25 12:33:33 -05:00
parent 409ff88dd7
commit a28caba95b
27 changed files with 320 additions and 320 deletions

View File

@@ -436,7 +436,7 @@ public abstract class LogFactory {
/**
* Create the hashtable which will be used to store a map of
* (context-classloader -> logfactory-object). Version 1.2+ of Java
* (context class loader -> logfactory-object). Version 1.2+ of Java
* supports "weak references", allowing a custom Hashtable class
* to be used which uses only weak references to its keys. Using weak
* references can fix memory leaks on webapp unload in some cases (though

View File

@@ -97,7 +97,7 @@ public class LogFactoryImpl extends LogFactory {
/**
* The name ({@code org.apache.commons.logging.Log.allowFlawedContext})
* of the system property which can be set true/false to
* determine system behavior when a bad context-classloader is encountered.
* determine system behavior when a bad context class loader is encountered.
* When set to false, a LogConfigurationException is thrown if
* LogFactoryImpl is loaded via a child class loader of the TCCL (this
* should never happen in sane systems).
@@ -1015,7 +1015,7 @@ public class LogFactoryImpl extends LogFactory {
* <li>the specific class just doesn't implement the Log interface
* (user screwed up), or
* <li> the specified class has bound to a Log class loaded by some other
* classloader; Log@classloaderX cannot be cast to Log@classloaderY.
* class loader; Log@ClassLoaderX cannot be cast to Log@ClassLoaderY.
* </ol>
* <p>
* Here we try to figure out which case has occurred so we can give the

View File

@@ -23,7 +23,7 @@ import junit.framework.TestCase;
/**
* Test the ability to force the LogFactory class to use some
* arbitrary Hashtable implementation to store its mapping from
* context-classloader -&gt; LogFactory object.
* context class loader -&gt; LogFactory object.
*/
public class AltHashtableTestCase extends TestCase {
@@ -61,7 +61,7 @@ public class AltHashtableTestCase extends TestCase {
}
/**
* Verify that when LogFactory sees a context-classloader for the
* Verify that when LogFactory sees a context class loader for the
* first time that it creates a new entry in the LogFactory.factories
* hashmap. In particular, this checks that this process works ok when
* a system property has been used to specify an alternative Hashtable