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/06/18 20:13:58 UTC
(camel) branch camel-4.10.x updated: camel-core: Fix copy paste mistake in simple languge functions for jsonpath and xpath
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.10.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.10.x by this push:
new d3c64a4a248 camel-core: Fix copy paste mistake in simple languge functions for jsonpath and xpath
d3c64a4a248 is described below
commit d3c64a4a248c9e79b0d211378452a35145f5254e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Jun 18 22:13:13 2025 +0200
camel-core: Fix copy paste mistake in simple languge functions for jsonpath and xpath
---
.../apache/camel/language/simple/ast/SimpleFunctionExpression.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/core/camel-core-languages/src/main/java/org/apache/camel/language/simple/ast/SimpleFunctionExpression.java b/core/camel-core-languages/src/main/java/org/apache/camel/language/simple/ast/SimpleFunctionExpression.java
index 55c6701ce6d..e56ce2b9218 100644
--- a/core/camel-core-languages/src/main/java/org/apache/camel/language/simple/ast/SimpleFunctionExpression.java
+++ b/core/camel-core-languages/src/main/java/org/apache/camel/language/simple/ast/SimpleFunctionExpression.java
@@ -586,7 +586,7 @@ public class SimpleFunctionExpression extends LiteralExpression {
|| exp.startsWith("variable:")) {
String input = StringHelper.before(exp, ",");
exp = StringHelper.after(exp, ",");
- return ExpressionBuilder.singleInputLanguageExpression("jq", exp, input);
+ return ExpressionBuilder.singleInputLanguageExpression("jsonpath", exp, input);
}
return ExpressionBuilder.languageExpression("jsonpath", exp);
}
@@ -601,7 +601,7 @@ public class SimpleFunctionExpression extends LiteralExpression {
|| exp.startsWith("variable:")) {
String input = StringHelper.before(exp, ",");
exp = StringHelper.after(exp, ",");
- return ExpressionBuilder.singleInputLanguageExpression("jq", exp, input);
+ return ExpressionBuilder.singleInputLanguageExpression("xpath", exp, input);
}
return ExpressionBuilder.languageExpression("xpath", exp);
}