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

reserved Csharp keywords are not escaped in some cases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.3, 0.10.0, 0.11.0
    • 0.12.0
    • C# - Compiler
    • None

    Description

      struct MeMessage {
       1: optional string fixed
       7: required string unchecked
      }

      Here reserved fixed C# keyword is escaped via @ but unchecked is not escaped in C# code so code is just not compilable


      I had a look in t_csharp_generator.cc and keyword are present and method normalize_name should make the escape

      Attachments

        Issue Links

          Activity

            People

              Pitming Pierre Mignolet
              Pitming Pierre Mignolet
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: