thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Geyer (Jira)" <j...@apache.org>
Subject [jira] [Updated] (THRIFT-5317) netstd compiler does not escape keywords
Date Tue, 01 Dec 2020 21:36:00 GMT

     [ https://issues.apache.org/jira/browse/THRIFT-5317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jens Geyer updated THRIFT-5317:
-------------------------------
    Summary: netstd compiler does not escape keywords  (was: netstd compiler does not escape
'params' or 'event' keyword)

> netstd compiler does not escape keywords
> ----------------------------------------
>
>                 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
>            Assignee: Jens Geyer
>            Priority: Major
>         Attachments: test.thrift
>
>
> 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)

Mime
View raw message