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

Cocoa import namespace

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.8, 0.9
    • Fix Version/s: 0.9.2
    • Component/s: Cocoa - Compiler
    • Labels:
      None
    • Environment:

      Windows 7

    • Patch Info:
      Patch Available

      Description

      domain.thrift
      namespace java domain.thrift
      namespace cocoa domain
      
      typedef string Decimal
      
      AccountService.thrift
      include "domain.thrift"
      
      namespace java test
      namespace cocoa test
      
      service AccountService {
        void testMethod(1: domain.Decimal price),
      }
      

      thrift -r --gen cocoa domain.thrift
      thrift -r --gen cocoa AccountService.thrift

      Check file: gen-cocoa/AccountService.h

      line:

      @protocol testAccountService <NSObject>
      - (void) testMethod: (testDecimal) price;  // throws TException
      @end
      

      It should be:

      @protocol testAccountService <NSObject>
      - (void) testMethod: (domainDecimal) price;  // throws TException
      @end
      

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              peter.peshev Peter Peshev
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: