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

Incorect code generated for some typedefs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9, 0.9.1
    • Fix Version/s: 0.9.2
    • Component/s: Delphi - Compiler
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The following IDL typedef

      struct Foo
      { 
      	1: optional byte myfield
      } 
      
      typedef Foo           Bar 
      typedef list<Foo>     FooList 
      typedef list<FooList> ListOfFooLists
      

      wrongly generates a reference to the implementing class:

      TBar = TFooImpl;
      

      Expected would be a reference to the interface:

      TBar = IFoo;
      

      Note that it works correctly for containers.

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              jensg Jens Geyer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: