diff --git a/pom.xml b/pom.xml index ab6751e7..2e062692 100755 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ - 1.7.35 + 1.7.36 2.0.0-alpha6 8 diff --git a/slf4j-site/src/site/pages/codes.html b/slf4j-site/src/site/pages/codes.html index bc6f706d..ccd7de84 100755 --- a/slf4j-site/src/site/pages/codes.html +++ b/slf4j-site/src/site/pages/codes.html @@ -513,6 +513,34 @@ class B extends A { href="legacy.html">Bridging legacy APIs.

+ +

Exception in + thread "main" java.lang.NoSuchFieldError: tlm

+ +
+      Exception in thread "main" java.lang.NoSuchFieldError: tlm
+	at org.apache.log4j.MDCFriend.fixForJava9(MDCFriend.java:11)
+	at org.slf4j.impl.Log4jMDCAdapter.(Log4jMDCAdapter.java:38)
+	at Main.main(Main.java:5) 
+ +

The NoSuchFieldError is thrown + when slf4j-log4j12 attempts to access the 'tlm' package + private field in org.apache.log4j.MDC which was + specified as being of type + java.lang.Object in log4j 1.2.x but was changed + to java.lang.ThreadLocal in reload4j. Moreover, such + access to package private fields from different modules is not + authorized by default in modularized applications in Java 9 and + later.

+ +

To keep a long story short, the NoSuchFieldError + can be avoided by using slf4j-reload4j.jar + with reload4j.jar. Stated + differently, org.slf4j.MDC cannot be used with + the slf4j-log4j12.jar and reload4j.jar + combination.

+ +

Failed to load diff --git a/slf4j-site/src/site/pages/download.html b/slf4j-site/src/site/pages/download.html index 0a101545..bdd94a22 100755 --- a/slf4j-site/src/site/pages/download.html +++ b/slf4j-site/src/site/pages/download.html @@ -33,7 +33,7 @@

EXPERIMENTAL/UNSTABLE version

-

SLF4J version ${project.version} is +

SLF4J version ${latest.2.version} is the most recent but it is also experimental/unstable.

Maven central

diff --git a/slf4j-site/src/site/pages/manual.html b/slf4j-site/src/site/pages/manual.html index f59b5000..0f8709af 100755 --- a/slf4j-site/src/site/pages/manual.html +++ b/slf4j-site/src/site/pages/manual.html @@ -278,8 +278,7 @@ SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail slf4j-reload4j module at build time. Assuming you wish to continue to use the log4j 1.x framework, we strongly encourage you to use slf4j-reload4j - instead. See below. -

+ instead. See below.

@@ -289,9 +288,9 @@ SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further detail reload4j framework. Reload4j is a drop-in replacement for log4j version 1.2.7. You also need to place reload4j.jar on your - class path.

+ class path.

- +
slf4j-jdk14-${latest.stable.version}.jar
Binding/provider for java.util.logging, also referred to as JDK 1.4 logging

diff --git a/slf4j-site/src/site/pages/news.html b/slf4j-site/src/site/pages/news.html index 2fd0cf06..ec94d436 100755 --- a/slf4j-site/src/site/pages/news.html +++ b/slf4j-site/src/site/pages/news.html @@ -40,6 +40,34 @@ class names in --> + + +
+ +

2022-02-08 - Release of SLF4J 1.7.36

+ +

Correct corrupt "Export-Package" declaration in + MANIFEST.MF in log4j-over-slf4j module. This + fixes SLF4J-541 + reported by Flavio Donzé.

+ +

Starting with version 1.7.36, slf4j releases will be + reproducible. By reproducible we mean that anyone checking out the + code corresponding to the release version from source code + repository and building that local copy, will obtain an identical + binary to the published binary. +

+ +

2022-01-25 - Release of SLF4J 1.7.35

diff --git a/slf4j-site/src/site/pages/templates/header.js b/slf4j-site/src/site/pages/templates/header.js index 7260586f..d1da3f9f 100644 --- a/slf4j-site/src/site/pages/templates/header.js +++ b/slf4j-site/src/site/pages/templates/header.js @@ -6,11 +6,6 @@ document.write(' 
 document.write('       </a>')
 document.write('    </td>')
 
-document.write('   <td style=') -document.write('

'); -document.write(' Sponsor us for the purchase of dedicated hardware. This will enable the production of automated and isolated releases.

'); -document.write(' '); document.write(' ');