You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Pascal Jacquemart (Jira)" <ji...@apache.org> on 2020/02/13 00:44:00 UTC
[jira] [Updated] (THRIFT-5091) Netstd generated bindings cannot
cope with struct names ending with "_result"
[ https://issues.apache.org/jira/browse/THRIFT-5091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Jacquemart updated THRIFT-5091:
--------------------------------------
Description:
I tried to generate bindings with the following thrift file for netstd:
{{struct myobject_result}}
{
{{ 1: required bool success,}}
{{ 2: optional string failure_cause,}}
{{}}}
{{struct myobject_operation}}
{
{{ 1: myobject_result result}}
{{}}}
But the generated code does not compile because the class name for {{myobject_result}} turns camel case {{myobjectResult in gen-netstd/myobject_result.cs but not in gen-netstd/myobject_operation.cs}}
was:
I tried to generate bindings with the following thrift file for netstd:
{{struct myobject_result}}
{{{}}
{{ 1: required bool success,}}
{{ 2: optional string failure_cause,}}
{{}}}
{{struct myobject_operation}}
{{{}}
{{ 1: myobject_result result}}
{{}}}
But the generated code does not compile because the class name for {{myobject_result}} turns camel case {{myobjectResult in gen-netstd/myobject_result.cs but not in gen-netstd/myobject_operation.cs}}
> Netstd generated bindings cannot cope with struct names ending with "_result"
> -----------------------------------------------------------------------------
>
> Key: THRIFT-5091
> URL: https://issues.apache.org/jira/browse/THRIFT-5091
> Project: Thrift
> Issue Type: Bug
> Components: netstd - Compiler
> Affects Versions: 0.13.0
> Environment: Ubuntu 18.04.3 LTS
> Thrift version: 0.13.0
> Reporter: Pascal Jacquemart
> Priority: Minor
>
> I tried to generate bindings with the following thrift file for netstd:
> {{struct myobject_result}}
> {
> {{ 1: required bool success,}}
> {{ 2: optional string failure_cause,}}
> {{}}}
> {{struct myobject_operation}}
> {
> {{ 1: myobject_result result}}
> {{}}}
> But the generated code does not compile because the class name for {{myobject_result}} turns camel case {{myobjectResult in gen-netstd/myobject_result.cs but not in gen-netstd/myobject_operation.cs}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)