thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksandr Skobelev (JIRA)" <>
Subject [jira] [Updated] (THRIFT-4116) Thrift de-capitalizes the name of IsSet property in Cocoa
Date Mon, 13 Mar 2017 09:28:04 GMT


Aleksandr Skobelev updated THRIFT-4116:

Attached the archive that demonstrates the issue: [^].
Just go to den-cocoa and try to compile it with something like:
  clang -fobjc-arc -c Test.m -I${THRIFT_SRC}/lib/cocoa/src/protocol  -I${THRIFT_SRC}/lib/cocoa/src/transport
, – where THRIFT_SRC is a path to Thrift sources

Then go to Test.H file and replace objIdIsSet with ObjIdIsSet and compile again.

> Thrift de-capitalizes the name of IsSet property in Cocoa
> ---------------------------------------------------------
>                 Key: THRIFT-4116
>                 URL:
>             Project: Thrift
>          Issue Type: Bug
>          Components: Cocoa - Compiler
>    Affects Versions: 0.10.0
>            Reporter: Aleksandr Skobelev
>            Priority: Critical
>         Attachments: thrift-0.10.0.patch,
> If a struct contains fields with capitalized names, Thrift compiler for Cocoa wrongly
generates IsSet Objective-C property started with lowercase character. In the same time it
keeps the uppercase latter in the name of the corresponding  instance variable. This breaks
the compilation of the generated code. 

This message was sent by Atlassian JIRA

View raw message