You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2025/03/13 09:17:56 UTC
(camel) branch camel-4.8.x updated: CAMEL-21865: camel-test - Using advice-with with route having XML namepaces as immutable Map.of
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.8.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.8.x by this push:
new b571dbb4d47 CAMEL-21865: camel-test - Using advice-with with route having XML namepaces as immutable Map.of
b571dbb4d47 is described below
commit b571dbb4d47c5b565f92e1c56fadd1b842d6c0b0
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Mar 13 10:17:11 2025 +0100
CAMEL-21865: camel-test - Using advice-with with route having XML namepaces as immutable Map.of
---
.../org/apache/camel/model/language/NamespaceAwareExpression.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/core/camel-core-model/src/main/java/org/apache/camel/model/language/NamespaceAwareExpression.java b/core/camel-core-model/src/main/java/org/apache/camel/model/language/NamespaceAwareExpression.java
index 834158bb6ef..5b71f787bdb 100644
--- a/core/camel-core-model/src/main/java/org/apache/camel/model/language/NamespaceAwareExpression.java
+++ b/core/camel-core-model/src/main/java/org/apache/camel/model/language/NamespaceAwareExpression.java
@@ -96,7 +96,10 @@ public abstract class NamespaceAwareExpression extends SingleInputTypedExpressio
}
if (namespace != null) {
for (PropertyDefinition def : namespace) {
- namespaces.put(def.getKey(), def.getValue());
+ boolean exists = namespaces.containsKey(def.getKey());
+ if (!exists) {
+ namespaces.put(def.getKey(), def.getValue());
+ }
}
}
return namespaces;