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

CSharp generate invalid code for property named read or write

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.2
    • 0.9.3
    • C# - Compiler
    • None

    Description

      C# generator will produce invalid code for this

      struct CsFail {
      1: optional bool read
      2: optional bool write
      }

      this will generate code that that will not compile, due to name clash between :

      public bool Read
      {
      get

      { return _read; }

      set

      { __isset.@read = true; this._read = value; }

      }

      and Read method implementation

      public void Read (TProtocol iprot)

      Attachments

        Issue Links

          Activity

            People

              jensg Jens Geyer
              gurubook Luca Sacchi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: