You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2020/12/01 21:07:00 UTC
[jira] [Commented] (THRIFT-5317) netstd compiler does not escape
'params' or 'event' keyword
[ https://issues.apache.org/jira/browse/THRIFT-5317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17241873#comment-17241873 ]
Jens Geyer commented on THRIFT-5317:
------------------------------------
http://thrift.apache.org/docs/HowToContribute
> netstd compiler does not escape 'params' or 'event' keyword
> -----------------------------------------------------------
>
> Key: THRIFT-5317
> URL: https://issues.apache.org/jira/browse/THRIFT-5317
> Project: Thrift
> Issue Type: Bug
> Components: netstd - Compiler
> Affects Versions: 0.13.0
> Reporter: Leonhard Schiele
> Priority: Major
>
> When compiling a thrift file with keyword 'event' and content:
> struct Departures
> {
> [...]
> 4:required StopEventParam event, // Options
> [...]
> }
> it is compiled without escaping:
> public Departures([...], StopEventParam event, [...]) : this()
> {
> [...]
> this.Event = event;
> [...]
> }
> same with keyword 'params'
> struct Departures
> {
> [...]
> 4:required StopEventParam params, // Options
> [...]
> }
> it is compiled without escaping:
> public Departures([...], StopEventParam params, [...]) : this()
> {
> [...]
> this.Event = params;
> [...]
> }
> The expected behaviour would be similiar to the csharp generator the escaping with an '@'
> for example:
> @params
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)