Matt Pavlovich created CAMEL-6109:
-------------------------------------
Summary: <to/> step in a <doCatch/> block runs when the <doTry/>
tag is closed in the wrong place
Key: CAMEL-6109
URL: https://issues.apache.org/jira/browse/CAMEL-6109
Project: Camel
Issue Type: Bug
Components: camel-core
Affects Versions: 2.10.3
Environment: Windows dev
Reporter: Matt Pavlovich
Example route:
<doTry>
<to ... >
</doTry>
<doCatch>
<exception>java.lang.Exception</exception>
<to uri="log.... "/>
</doCatch>
The <to uri="log..."/> line will execute every time, regardless if there is an
exception or not.
I believe the preferred behavior would be that the route should fails to
load/validate. Alternatively, the <to uri="log.." /> should not run when there
is not an exception.
Thanks!
--
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