You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "James E. King III (JIRA)" <ji...@apache.org> on 2019/01/14 15:04:04 UTC
[jira] [Resolved] (THRIFT-2079) Expose collection element type
information through @property comments.
[ https://issues.apache.org/jira/browse/THRIFT-2079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James E. King III resolved THRIFT-2079.
---------------------------------------
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.
> Expose collection element type information through @property comments.
> ----------------------------------------------------------------------
>
> Key: THRIFT-2079
> URL: https://issues.apache.org/jira/browse/THRIFT-2079
> Project: Thrift
> Issue Type: Improvement
> Components: Cocoa - Compiler
> Affects Versions: 0.9
> Reporter: Zachary Davison
> Assignee: James E. King III
> Priority: Minor
> Labels: newbie
> Fix For: 1.0
>
> Attachments: thrift-cocoa-collection-type-comments.patch
>
>
> Currently there is no easy way to know type information of collections in generated Cocoa thrift classes (due to obj-c collections not being templated).
> This becomes awkward from a documentation point of view as the code is not self documenting and assumptions have to be made by the reader based on the type of elements inside a collection.
> Suggest appending comments after @property declarations to indicate element type, eg:
> @property (nonatomic, retain, getter=newlist, setter=setNewlist:) NSMutableArray * newlist; // <NSNumber*>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)