[
https://issues.apache.org/jira/browse/THRIFT-5408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer updated THRIFT-5408:
-------------------------------
Description:
C# offers the option to mark e.g. methods as being deprecated (or obsolete),
optionally including some helpful comment how to migrate the code. This should
be supported via a generic "deprecated" annotation, like so:
{code:java}
service deprecate_everything {
void Foo( ) ( deprecated = "Use Bar() instead" )
void Bar( ) ( deprecated ) // no comment this time
}
{code}
was:
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.
> Support for deprecated methods (via annotation)
> -----------------------------------------------
>
> Key: THRIFT-5408
> URL: https://issues.apache.org/jira/browse/THRIFT-5408
> Project: Thrift
> Issue Type: Improvement
> Components: netstd - Compiler
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Priority: Major
>
> C# offers the option to mark e.g. methods as being deprecated (or obsolete),
> optionally including some helpful comment how to migrate the code. This
> should be supported via a generic "deprecated" annotation, like so:
> {code:java}
> service deprecate_everything {
> void Foo( ) ( deprecated = "Use Bar() instead" )
> void Bar( ) ( deprecated ) // no comment this time
> }
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)