You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2014/11/05 05:49:28 UTC

[jira] [Commented] (THRIFT-1609) Cocoa import namespace

    [ https://issues.apache.org/jira/browse/THRIFT-1609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14197608#comment-14197608 ] 

Hudson commented on THRIFT-1609:
--------------------------------

SUCCESS: Integrated in Thrift #1331 (See [https://builds.apache.org/job/Thrift/1331/])
THRIFT-1609 Cocoa import namespace (jensg: rev cdab7eef751ab26204d644da457f98ce77ad109f)
* compiler/cpp/src/generate/t_cocoa_generator.cc


> 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
>            Assignee: Jens Geyer
>            Priority: Minor
>             Fix For: 0.9.2
>
>         Attachments: 0001-THRIFT-1609-Fixed-typedef-from-included-file-on-Coco.patch
>
>
> {code:title=domain.thrift}
> namespace java domain.thrift
> namespace cocoa domain
> typedef string Decimal
> {code}
> {code:title=AccountService.thrift}
> include "domain.thrift"
> namespace java test
> namespace cocoa test
> service AccountService {
>   void testMethod(1: domain.Decimal price),
> }
> {code}
> thrift -r --gen cocoa domain.thrift
> thrift -r --gen cocoa AccountService.thrift
> Check file: gen-cocoa/AccountService.h
> line:
> {code}
> @protocol testAccountService <NSObject>
> - (void) testMethod: (testDecimal) price;  // throws TException
> @end
> {code}
> It should be:
> {code}
> @protocol testAccountService <NSObject>
> - (void) testMethod: (domainDecimal) price;  // throws TException
> @end
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)