File: 02-jackson-compatibility.patch

package info (click to toggle)
apache-log4j2 2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,124 kB
  • ctags: 20,249
  • sloc: java: 115,953; xml: 16,123; sh: 44; jsp: 21; makefile: 6
file content (14 lines) | stat: -rw-r--r-- 707 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Fixes the compatibility with the version of jackson in Debian
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/server/InputStreamLogEventBridge.java
+++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/server/InputStreamLogEventBridge.java
@@ -45,7 +45,7 @@
         this.bufferSize = bufferSize;
         this.charset = charset;
         this.eventEndMarker = eventEndMarker;
-        this.objectReader = mapper.readerFor(Log4jLogEvent.class);
+        this.objectReader = mapper.reader(Log4jLogEvent.class);
     }
 
     abstract protected int[] getEventIndices(final String text, int beginIndex);