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

Cocoa Generator should use local file imports for base Thrift headers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.9
    • Component/s: Cocoa - Compiler
    • Labels:
    • Patch Info:
      Patch Available

      Description

      The Cocoa generator imports various thrift files as global imports instead of local importss. This ends up requiring that the user alter their header search paths to include the directories the generated thrift code is in, or the user has to edit the generated files to remove this.

      e.g.

      #import <TProtocol.h>
      #import <TApplicationException.h>
      #import <TProtocolUtil.h>
      #import <TProcessor.h>

      vs.

      #import "TProtocol.h"
      #import "TApplicationException.h"
      #import "TProtocolUtil.h"
      #import "TProcessor.h"

        Attachments

        1. THRIFT-1504.patch
          0.8 kB
          Steve White

          Activity

            People

            • Assignee:
              swhite Steve White
              Reporter:
              swhite Steve White
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: