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

remove 'this is a dummy struct' structs from generated erlang

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.9.2
    • Component/s: Erlang - Compiler
    • Labels:
    • Patch Info:
      Patch Available

      Description

      the erlang backend adds 'this is a dummy struct' struct_info/1 (and struct_info_ext/1) clause to generated files which is probably incorrect behavior. it should probably instead be a function clause that catches all undefined structs and returns either 'undefined' or throws a 'function_clause' error. i've supplied a patch that does the latter (as that is the current behavior if you call struct_info/1 or struct_info_ext/1 with an undefined struct name)

        Attachments

          Activity

            People

            • Assignee:
              roger.meier Roger Meier
              Reporter:
              alisdairsullivan alisdair sullivan
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: