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:14:15 UTC
(camel) branch camel-4.8.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.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 0c14b6f9ce8 camel-core: Fix copy paste mistake in simple languge functions for jsonpath and xpath
0c14b6f9ce8 is described below
commit 0c14b6f9ce862b6b8627b32ae64ea7f7dbc6231e
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 c7e5308ac20..51567a9fcc0 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
@@ -555,7 +555,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);
}
@@ -570,7 +570,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);
}