Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5091

Netstd generator produces uncompileable code for struct names ending with "_result" or "_args"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.13.0
    • 0.14.0
    • netstd - Compiler
    • None
    • Ubuntu 18.04.3 LTS

      Thrift version: 0.13.0

    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

      Attachments

        Issue Links

          Activity

            People

              jensg Jens Geyer
              p99 Pascal Jacquemart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m