You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Marc Carter (JIRA)" <ji...@apache.org> on 2019/04/07 10:42:00 UTC

[jira] [Commented] (CAMEL-13086) Java DSL: Rename "endChoice" to "endWhen"

    [ https://issues.apache.org/jira/browse/CAMEL-13086?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16811836#comment-16811836 ] 

Marc Carter commented on CAMEL-13086:
-------------------------------------

> choice is ended by end, and when by endChoice
As a long-time user, this _still_ makes me pause every time to make sure I'm not doing it wrong or second-guessing myself. 
Is it possible to make all {{end*()}} aliases? The blocks they terminate are strictly hierarchical after all so {{end*()}} always means "end the current block", right? If so, code has the opportunity to validate typed {{end*()}} DSL accommodating (with deprecation warning) the existing use of {{endChoice()}} to mean {{endWhen()}}.

> Java DSL: Rename "endChoice" to "endWhen"
> -----------------------------------------
>
>                 Key: CAMEL-13086
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13086
>             Project: Camel
>          Issue Type: Wish
>          Components: camel-core
>            Reporter: Peter Keller
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Java DSL: Rename {{endChoice}} to {{endWhen}} as {{endChoice}} actually ends a {{when}} condition.
> I am aware that this will break current routes. Nevertheless I wanted to bring this issue to discussion as {{endChoice}} isn't obvious for beginners that learn the framework.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)