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

Claus Ibsen commented on CAMEL-3888:
------------------------------------

Dan as said before just because a method is deprecated do *not* mean we should 
not unit test it. And hence why you would see unit test that uses the 
deprecated methods.

The handled(true|false) on try .. catch, error handler, was a mistake and there 
are *no* alternative on those. Instead you should use for example onException 
(exception clause). Or in case of a doCatch you can rethrow the exception if 
you want that. 


> Tighten up @deprecated in camel-core to add more details what alternatives to 
> use
> ---------------------------------------------------------------------------------
>
>                 Key: CAMEL-3888
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3888
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.7.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.8.0
>
>
> We should ensure all deprecated classes/methods in camel-core is documented 
> what alternatives to use. Also if possible give a hint when it could be 
> removed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to