[
https://issues.apache.org/jira/browse/THRIFT-5261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer resolved THRIFT-5261.
--------------------------------
Fix Version/s: 0.14.0
Resolution: Fixed
> Support for deprecated methods (via annotation)
> -----------------------------------------------
>
> Key: THRIFT-5261
> URL: https://issues.apache.org/jira/browse/THRIFT-5261
> Project: Thrift
> Issue Type: Improvement
> Components: Delphi - Compiler
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Priority: Major
> Fix For: 0.14.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Delphi offers the option to mark e.g. methods as being deprecated, optionally
> including some helpful comment how to migrate the code. This should be
> supported via a generic "deprecated" annotation, like so:
> {code}
> service deprecate_everything {
> void Foo( ) ( deprecated = "Use Bar() instead" )
> void Bar( ) ( deprecated ) // no comment this time
> }
> {code}
> Other languages are invited to "jump in" and support this annotation as well.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)