[
https://issues.apache.org/jira/browse/THRIFT-2503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alexander Potashev updated THRIFT-2503:
---------------------------------------
Description:
When a Thrift "struct" defined in the .thrift IDL file has a member "val", the
C++ compiler generates the following faulty code in the setter method for that
member variable:
void MyStruct::__set_val(const int32_t val) {
val = val;
__isset.val = true;
}
was:
When an RPC service function defined in the .thrift IDL file has an argument
"val", the C++ compiler generates the following faulty code in the class that
stores function arguments:
void __set_val(const int32_t val) {
val = val;
}
Fix Version/s: (was: 0.9.2)
Summary: C++: Fix name collision when a struct has a member named
"val" (was: C++: Fix name collision when RPC function argument is called "val")
> C++: Fix name collision when a struct has a member named "val"
> --------------------------------------------------------------
>
> Key: THRIFT-2503
> URL: https://issues.apache.org/jira/browse/THRIFT-2503
> Project: Thrift
> Issue Type: Bug
> Components: C++ - Compiler
> Affects Versions: 0.9.1
> Reporter: Alexander Potashev
>
> When a Thrift "struct" defined in the .thrift IDL file has a member "val",
> the C++ compiler generates the following faulty code in the setter method for
> that member variable:
> void MyStruct::__set_val(const int32_t val) {
> val = val;
> __isset.val = true;
> }
--
This message was sent by Atlassian JIRA
(v6.2#6252)