You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (JIRA)" <ji...@apache.org> on 2015/08/05 21:48:05 UTC
[jira] [Resolved] (THRIFT-2832) c_glib: Handle string lists
correctly
[ https://issues.apache.org/jira/browse/THRIFT-2832?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer resolved THRIFT-2832.
--------------------------------
Resolution: Fixed
Fix Version/s: 0.9.3
Committed. [~simonsouth], forgot to mention the PR number. Could you please close it manually? Thanks!
> c_glib: Handle string lists correctly
> -------------------------------------
>
> Key: THRIFT-2832
> URL: https://issues.apache.org/jira/browse/THRIFT-2832
> Project: Thrift
> Issue Type: Question
> Components: C glib - Compiler
> Affects Versions: 0.9.2
> Reporter: wuhzj
> Assignee: Simon South
> Priority: Minor
> Fix For: 0.9.3
>
>
> The C (GLib) compiler in its present form will generate incorrect code for string lists (i.e. variables of type {{list<string>}}) that are
> - Passed as a parameter to a method,
> - Returned from a method, or
> - Assigned a default value.
> In each case, the issue relates to the compiler not recognizing a string list is represented as an instance of GLib's {{GPtrArray}}, instead of {{GArray}} used to represent most other types of lists.
> Fixing this will silence a number of compiler warnings when building the generated code.
> ----
> I noticed that in latest thrift v0.9.2, the C (GLib) compiler and library to add support for implementing servers.
> But in my case, I got some compiling warnings in when compiling the generated server side code after upgrade to 0.9.2. Actually, I just use thrift c glib in client side, Is it possible to generate the client side code only?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)