Yasser Zamani created CAMEL-17594:
-------------------------------------

             Summary: Try Catch WireTap OnPrepare ClassCastException
                 Key: CAMEL-17594
                 URL: https://issues.apache.org/jira/browse/CAMEL-17594
             Project: Camel
          Issue Type: Bug
          Components: came-core
    Affects Versions: 3.14.0
            Reporter: Yasser Zamani
         Attachments: TryCatchWireTapOnPrepareTest.java

issue when {{wireTap }}is inside a {{doCatch}}, and has {{.end()}}. Attached 
test run ends up in

{noformat}
java.lang.ClassCastException: class org.apache.camel.model.CatchDefinition 
cannot be cast to class org.apache.camel.model.TryDefinition
{noformat}

Removing {{.end()}} fixes issue but then it's confusing why exactly same 
{{wireTap }} inside {{doTry }} MUST have {{.end()}} and inside {{doCatch}} MUST 
NOT!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to