[ https://issues.apache.org/jira/browse/CAMEL-3619?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-3619. -------------------------------- Resolution: Fixed Fix Version/s: (was: Future) 2.9.0 The simple language now has improved syntax parser which reports errors with precise detail what is wrong and where the problem is > Improve the Simple Expression Language parser to detect syntax errors > --------------------------------------------------------------------- > > Key: CAMEL-3619 > URL: https://issues.apache.org/jira/browse/CAMEL-3619 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.4.0 > Reporter: Xavier Coulon > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.9.0 > > > The example below contains a syntax error that is not detected at runtime (a > '.' before the 'regex' operator at line 3) : > {noformat} <choice> > <when> > <simple>${in.body}.regex '^D1.*$'</simple> > <to uri="seda:dataintegration.filtered.elements" /> > </when> > <otherwise> > <to uri="seda:dataintegration.ignored.elements" /> > </otherwise> > </choice>{noformat} > In that situation, all messages are sent to the first endpoint, no matter > what their body contains. > See the discussion thread : > http://camel.465427.n5.nabble.com/Filtering-messages-with-simple-regex-td3369198.html -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira