You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by mi...@apache.org on 2016/04/14 10:37:41 UTC

[4/6] logging-log4j2 git commit: LOG4J2-1334 bugfix: ThrowableProxy is not cached, getter method is called in LogEventProxy constructor

LOG4J2-1334 bugfix: ThrowableProxy is not cached, getter method is called in LogEventProxy constructor


Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/89808ecb
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/89808ecb
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/89808ecb

Branch: refs/heads/LOG4J2-1365
Commit: 89808ecbbe50067ac3b5a1b60a38079002650d20
Parents: 5f461a7
Author: rpopma <rp...@apache.org>
Authored: Thu Apr 14 01:52:36 2016 +0900
Committer: rpopma <rp...@apache.org>
Committed: Thu Apr 14 01:52:36 2016 +0900

----------------------------------------------------------------------
 .../java/org/apache/logging/log4j/core/impl/MutableLogEvent.java    | 1 -
 1 file changed, 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/89808ecb/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/MutableLogEvent.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/MutableLogEvent.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/MutableLogEvent.java
index 2e2626f..876ce58 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/MutableLogEvent.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/impl/MutableLogEvent.java
@@ -190,7 +190,6 @@ public class MutableLogEvent implements LogEvent {
      * @return a LogEventProxy.
      */
     protected Object writeReplace() {
-        getThrownProxy(); // ensure ThrowableProxy is initialized
         return new Log4jLogEvent.LogEventProxy(this, this.includeLocation);
     }