You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2021/05/04 22:57:18 UTC
[cxf] branch master updated: CXF-8536 Conditional log for
NamespaceMapper not found (#791)
This is an automated email from the ASF dual-hosted git repository.
reta pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new 1cad500 CXF-8536 Conditional log for NamespaceMapper not found (#791)
1cad500 is described below
commit 1cad50010816aa59a982691e2a8b61548894c386
Author: Stefan Berger <be...@users.noreply.github.com>
AuthorDate: Wed May 5 00:57:05 2021 +0200
CXF-8536 Conditional log for NamespaceMapper not found (#791)
Only logs the message "Could not create a NamespaceMapper ..." if it really is the case
---
.../main/java/org/apache/cxf/common/spi/NamespaceClassGenerator.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/core/src/main/java/org/apache/cxf/common/spi/NamespaceClassGenerator.java b/core/src/main/java/org/apache/cxf/common/spi/NamespaceClassGenerator.java
index 48c755b..23a9a4b 100644
--- a/core/src/main/java/org/apache/cxf/common/spi/NamespaceClassGenerator.java
+++ b/core/src/main/java/org/apache/cxf/common/spi/NamespaceClassGenerator.java
@@ -75,7 +75,9 @@ public class NamespaceClassGenerator extends ClassGeneratorClassLoader implement
t = ex2;
}
}
- LOG.log(Level.INFO, "Could not create a NamespaceMapper compatible with Marshaller class " + mcls.getName(), t);
+ if (cls == null) {
+ LOG.log(Level.INFO, "Could not create a NamespaceMapper compatible with Marshaller class " + mcls.getName(), t);
+ }
return cls;
}