[ 
https://issues.apache.org/jira/browse/THRIFT-4521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James E. King III resolved THRIFT-4521.
---------------------------------------
       Resolution: Won't Do
         Assignee: James E. King III
    Fix Version/s: 1.0

As support for the older cocoa compiler and library have been removed (see 
THRIFT-4719), all of the issues in Jira related to that code have also been 
removed.  For legacy cocoa support you can use version 0.12.0 - everyone is 
expected to move to swift if they want to use the next release of Thrift.

> Cocoa compiler produces invalid code for recursive structs
> ----------------------------------------------------------
>
>                 Key: THRIFT-4521
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4521
>             Project: Thrift
>          Issue Type: Bug
>          Components: Cocoa - Compiler
>    Affects Versions: 0.11.0
>            Reporter: Yan Zhulanow
>            Assignee: James E. King III
>            Priority: Major
>             Fix For: 1.0
>
>
> {{Source:}}
> {{-------}}
> {{struct Node {}}
>  {{    1: string name;}}
>  {{    2: list<Node> children;}}
>  {{}}}
> {{Generated code (partially, used Thrift 0.11.0):}}
> {{----------}}{{-------}}{{-------}}{{-------}}{{-------}}{{-------}}{{----}}{{-------}}{{----}}{{------}}
> {{@interface Node : NSObject <TBase, NSCoding, NSCopying>}}
> {{@property (strong, nonatomic) NSString * name;}}
>  {{@property (assign, nonatomic) BOOL nameIsSet;}}
>  {{- (void) unsetName;}}
> {{@property (strong, nonatomic) NSMutableArray<Node> * children;}}
>  {{@property (assign, nonatomic) BOOL childrenIsSet;}}
>  {{- (void) unsetChildren;}}
>  
> {{As you can see, NSMutableArray<Node> is not a valid type 
> (NSMutableArray<Node *> * was expected), and the code doesn't compile.}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to