sdeboy 2004/01/07 12:45:05 Modified: src/java/org/apache/log4j/xml UtilLoggingXMLDecoder.java XMLDecoder.java Log: When loading events from xml, reset all re-used local variables used in construction of the event. Revision Changes Path 1.5 +14 -0 logging-log4j/src/java/org/apache/log4j/xml/UtilLoggingXMLDecoder.java Index: UtilLoggingXMLDecoder.java =================================================================== RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/xml/UtilLoggingXMLDecoder.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- UtilLoggingXMLDecoder.java 20 Nov 2003 22:09:13 -0000 1.4 +++ UtilLoggingXMLDecoder.java 7 Jan 2004 20:45:05 -0000 1.5 @@ -409,6 +409,20 @@ mdc, exception, info, properties)); + + logger = null; + timeStamp = 0L; + level = null; + threadName = null; + message = null; + ndc = null; + mdc = null; + exception = null; + className = null; + methodName = null; + fileName = null; + lineNumber = null; + properties = null; } return events; } 1.7 +13 -0 logging-log4j/src/java/org/apache/log4j/xml/XMLDecoder.java Index: XMLDecoder.java =================================================================== RCS file: /home/cvs/logging-log4j/src/java/org/apache/log4j/xml/XMLDecoder.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- XMLDecoder.java 8 Dec 2003 06:00:21 -0000 1.6 +++ XMLDecoder.java 7 Jan 2004 20:45:05 -0000 1.7 @@ -416,6 +416,19 @@ mdc, exception, info, properties)); + logger = null; + timeStamp = 0L; + level = null; + threadName = null; + message = null; + ndc = null; + mdc = null; + exception = null; + className = null; + methodName = null; + fileName = null; + lineNumber = null; + properties = null; } return events;
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]