You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Antoine DESSAIGNE (JIRA)" <ji...@apache.org> on 2013/04/30 16:38:15 UTC

[jira] [Created] (CAMEL-6328) Simple expression and predicate have different behaviors when used along with properties

Antoine DESSAIGNE created CAMEL-6328:
----------------------------------------

             Summary: Simple expression and predicate have different behaviors when used along with properties
                 Key: CAMEL-6328
                 URL: https://issues.apache.org/jira/browse/CAMEL-6328
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.10.3
            Reporter: Antoine DESSAIGNE
         Attachments: CamelTest.java

The following simple expression doesn't behave the same way whether it's used as expression or predicate:
{noformat}
'{{foo}}' == 'bar'
{noformat}

When used in a predicate the given expression is thrown:
{noformat}
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)
...
{noformat}

You'll find attached the source code that shows the error

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira