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

Uncompilable C# code in 0.20.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20.0
    • 0.21.0
    • netstd - Compiler
    • None
    • Patch Available

    Description

      Symptom

      namespace * deepcopy_syntax
      
      struct CIELab
      {
        1: double L;
        2: double a;
        3: double b;
      }
      

      via

      thrift -gen netstd test.thrift
      

      leads to

      public CIELab DeepCopy()
      {
      	var tmp5 = new CIELab()    // <----- here the closing ";" is missing
      	if(__isset.L)
      	{
      		tmp5.L = this.L;
      	}
      	...
      

      Affected versions

      • 0.20.0 only

      Attachments

        Activity

          People

            jensg Jens Geyer
            jensg Jens Geyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 3h 20m
                3h 20m