qos-ch / reload4j

reload4j is a drop-in replacement for log4j 1.2.17
Apache License 2.0
149 stars 22 forks source link

remove broken and silly Loader.isjava1() test in MDC static constructor #4

Closed ceki closed 2 years ago

ceki commented 2 years ago

The Loader.isJava1() test in org.apache.log4j.MDC is broken when run in JDK 9 or later. MDC incorrectly assumes that the runtime environment is Java 1.1 (not 11 but 1.1) and disables MDC functionality entirely.

ceki commented 2 years ago

Fixed in commit 86d356c98