This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/master by this push:
     new 61bd453  CAMEL-15606: camel-core - Simple with bean function should 
resolve language once
61bd453 is described below

commit 61bd4538a5a6427d67833854c74367d4ea1441c4
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Oct 2 13:02:45 2020 +0200

    CAMEL-15606: camel-core - Simple with bean function should resolve language 
once
---
 .../org/apache/camel/language/simple/ast/SimpleFunctionExpression.java | 3 +--
 1 file changed, 1 insertion(+), 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 db79f6c..eedc169 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
@@ -207,9 +207,8 @@ public class SimpleFunctionExpression extends 
LiteralExpression {
         // bean: prefix
         remainder = ifStartsWithReturnRemainder("bean:", function);
         if (remainder != null) {
-            // resolve bean language early
             Language bean = camelContext.resolveLanguage("bean");
-            return ExpressionBuilder.languageExpression("bean", bean, 
remainder);
+            return bean.createExpression(remainder);
         }
 
         // properties: prefix

Reply via email to