camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CAMEL-6328) Simple expression and predicate have different behaviors when used along with properties
Date Wed, 08 May 2013 06:45:18 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen reassigned CAMEL-6328:
----------------------------------

    Assignee: Claus Ibsen
    
> 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
>            Assignee: Claus Ibsen
>         Attachments: CamelTest.java, properties_everywhere.patch
>
>
> 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 an expression, it works perfectly.
> 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

Mime
View raw message