[
https://issues.apache.org/jira/browse/THRIFT-1609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer updated THRIFT-1609:
-------------------------------
Patch Info: Patch Available
Labels: (was: patch)
> Cocoa import namespace
> ----------------------
>
> Key: THRIFT-1609
> URL: https://issues.apache.org/jira/browse/THRIFT-1609
> Project: Thrift
> Issue Type: Bug
> Components: Cocoa - Compiler
> Affects Versions: 0.8, 0.9
> Environment: Windows 7
> Reporter: Peter Peshev
> Priority: Minor
> Attachments:
> 0001-THRIFT-1609-Fixed-typedef-from-included-file-on-Coco.patch
>
>
> 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
--
This message was sent by Atlassian JIRA
(v6.2#6252)