thrift-dev mailing list archives

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

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

Aleksandr Skobelev updated THRIFT-4116:
---------------------------------------
    Attachment: Thrift-4116-demo.zip

Attached the archive that demonstrates the issue: [^Thrift-4116-demo.zip].
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
-I${THRIFT_SRC}/lib/cocoa/src/
, – 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: https://issues.apache.org/jira/browse/THRIFT-4116
>             Project: Thrift
>          Issue Type: Bug
>          Components: Cocoa - Compiler
>    Affects Versions: 0.10.0
>            Reporter: Aleksandr Skobelev
>            Priority: Critical
>         Attachments: thrift-0.10.0.patch, Thrift-4116-demo.zip
>
>
> 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
(v6.3.15#6346)

Mime
View raw message