You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by rp...@apache.org on 2016/03/16 15:13:33 UTC

logging-log4j2 git commit: LOG4J2-1278 added explicit cast to disambiguate which method is being called

Repository: logging-log4j2
Updated Branches:
  refs/heads/LOG4J2-1278-gc-free-logger 7db64d5df -> 5d1c542a7


LOG4J2-1278 added explicit cast to disambiguate which method is being called


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

Branch: refs/heads/LOG4J2-1278-gc-free-logger
Commit: 5d1c542a78751e259c5e06b1d43e35a3aa0129c8
Parents: 7db64d5
Author: rpopma <rp...@apache.org>
Authored: Thu Mar 17 01:13:25 2016 +1100
Committer: rpopma <rp...@apache.org>
Committed: Thu Mar 17 01:13:25 2016 +1100

----------------------------------------------------------------------
 log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/5d1c542a/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java
index 4f0c495..9b2705c 100644
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/Logger.java
@@ -416,7 +416,7 @@ public class Logger extends AbstractLogger implements Supplier<LoggerConfig> {
         boolean filter(final Level level, final Marker marker, final String msg, final Throwable t) {
             final Filter filter = config.getFilter();
             if (filter != null) {
-                final Filter.Result r = filter.filter(logger, level, marker, msg, t);
+                final Filter.Result r = filter.filter(logger, level, marker, (Object) msg, t);
                 if (r != Filter.Result.NEUTRAL) {
                     return r == Filter.Result.ACCEPT;
                 }