Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.10.3
-
None
-
Unknown
Description
The following simple expression doesn't behave the same way whether it's used as expression or predicate:
'{{foo}}' == 'bar'
When used in an expression, it works perfectly.
When used in a predicate the given expression is thrown:
org.apache.camel.language.simple.types.SimpleIllegalSyntaxException: functionEnd has no matching start token at location 7 '{{foo}}' == 'bar' * at org.apache.camel.language.simple.SimplePredicateParser.parsePredicate(SimplePredicateParser.java:69) at org.apache.camel.language.simple.SimpleLanguage.createPredicate(SimpleLanguage.java:136) at org.apache.camel.builder.SimpleBuilder.matches(SimpleBuilder.java:73) at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:66) ...
You'll find attached the source code that shows the error