You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by ce...@apache.org on 2002/07/31 20:18:35 UTC
cvs commit: jakarta-log4j/src/java/org/apache/log4j/helpers OptionConverter.java
ceki 2002/07/31 11:18:35
Modified: docs Tag: v1_2-branch HISTORY
src/java/org/apache/log4j/helpers Tag: v1_2-branch
OptionConverter.java
Log:
Improved error reporting for the "Appender not assingable to Appender" problem.
Added blurb on the MDC bug in the HISTORY file.
Revision Changes Path
No revision
No revision
1.97.2.11 +10 -5 jakarta-log4j/docs/HISTORY
Index: HISTORY
===================================================================
RCS file: /home/cvs/jakarta-log4j/docs/HISTORY,v
retrieving revision 1.97.2.10
retrieving revision 1.97.2.11
diff -u -r1.97.2.10 -r1.97.2.11
--- HISTORY 31 Jul 2002 09:25:12 -0000 1.97.2.10
+++ HISTORY 31 Jul 2002 18:18:35 -0000 1.97.2.11
@@ -23,11 +23,16 @@
Modified existing appenders to comply with these new directives. [*]
- - Log4j now will check if a system property called "log4j.ignoreTCL"
- is set. If it is it will ignore the Thread Context ClassLoader when
- loading classes. This solves the irrating "appender is not
- appender" messages observed when log4j.jar is loaded by multiple
- class loaders. [*]
+ - Log4j now will check if a system property named "log4j.ignoreTCL"
+ is set. If it is set, then it will ignore the Thread Context
+ ClassLoader when loading classes. This solves the irrating
+ "appender is not assignable to Appender" messages observed when
+ log4j.jar is loaded by multiple class loaders.
+
+ The error reporting for this problem was also improved. [*]
+
+ - Fixed bug #10528 whereby calling the MDC.get method with a null
+ argument would throw a NullPointerException. [*]
July 5th, 2002
No revision
No revision
1.36.2.3 +4 -4 jakarta-log4j/src/java/org/apache/log4j/helpers/OptionConverter.java
Index: OptionConverter.java
===================================================================
RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/helpers/OptionConverter.java,v
retrieving revision 1.36.2.2
retrieving revision 1.36.2.3
diff -u -r1.36.2.2 -r1.36.2.3
--- OptionConverter.java 31 Jul 2002 09:25:13 -0000 1.36.2.2
+++ OptionConverter.java 31 Jul 2002 18:18:35 -0000 1.36.2.3
@@ -310,10 +310,10 @@
if(!superClass.isAssignableFrom(classObj)) {
LogLog.error("A \""+className+"\" object is not assignable to a \""+
superClass.getName() + "\" variable.");
- LogLog.error("The class \""+ superClass.getName()+"\" was loaded by ["
- +superClass.getClassLoader()+"] whereas object of type\""
- +classObj.getClass().getName() +"\" was loaded by ["
- +classObj.getClass().getClassLoader()+"].");
+ LogLog.error("The class \""+ superClass.getName()+"\" was loaded by ");
+ LogLog.error("["+superClass.getClassLoader()+"] whereas object of type ");
+ LogLog.error("\"" +classObj.getName()+"\" was loaded by ["
+ +classObj.getClassLoader()+"].");
return defaultValue;
}
return classObj.newInstance();
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>