You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by gn...@apache.org on 2026/10/15 10:18:44 UTC
(maven) 03/06: fix: update stale SLF4JBridgeHandler references to MavenJulHandler in LookupInvoker comments
This is an automated email from the ASF dual-hosted git repository.
gnodet pushed a commit to branch feature/logging-foundation-work
in repository https://gitbox.apache.org/repos/asf/maven.git
commit 4fefa57922d41b0bd8e5ebefb77ef8fdff2609bf
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Wed Oct 14 07:21:40 2026 +0000
fix: update stale SLF4JBridgeHandler references to MavenJulHandler in LookupInvoker comments
---
.../src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java b/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
index dc52c2cb0c..a5a3472698 100644
--- a/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
+++ b/impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
@@ -127,7 +127,7 @@ public final int invoke(InvokerRequest invokerRequest) {
Properties oldProps = new Properties();
oldProps.putAll(System.getProperties());
ClassLoader oldCL = Thread.currentThread().getContextClassLoader();
- // activateLogging() replaces them with SLF4JBridgeHandler, whose classes live in Maven's realm
+ // activateLogging() replaces them with MavenJulHandler, whose classes live in Maven's realm
Handler[] oldRootLoggerHandlers = java.util.logging.Logger.getLogger("").getHandlers();
try (C context = createContext(invokerRequest)) {
if (contextConsumer != null) {
@@ -158,7 +158,7 @@ public final int invoke(InvokerRequest invokerRequest) {
/**
* Puts back the handlers the {@code java.util.logging} root logger had before the invocation. When Maven runs inside
- * another JVM, the root logger belongs to that JVM, and a {@code SLF4JBridgeHandler} left on it would route the
+ * another JVM, the root logger belongs to that JVM, and a {@code MavenJulHandler} left on it would route the
* host's logging to Maven and fail once Maven's class realm is closed.
*/
private static void restoreRootLoggerHandlers(Handler[] handlers) {