Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2560 Thrift compiler generator tries to concat ints with strings using +
  3. THRIFT-2558

CSharp compiler generator tries to concat ints with strings using +

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • C# - Compiler
    • None
    • all

    • Patch Available

    Description

      The t_csharp_generator.cc source tries to throw a string by adding a string literal ("") and an int (t_base_type::t_base) in several places (same bug appears in delphi and d generators).

      e.g. throw "compiler error: no C# name for base type " + tbase->get_base();

      changed to:

      { std::stringstream ss; ss << "compiler error: no C# name for base type " << tbase->get_base(); throw ss.str(); }

      Attachments

        Issue Links

          Activity

            People

              codesf Randy Abernethy
              codesf Randy Abernethy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: