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

Incorect code generated for some typedefs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9, 0.9.1
    • 0.9.2
    • Delphi - Compiler
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: