You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Alexander Potashev (JIRA)" <ji...@apache.org> on 2014/04/29 18:48:14 UTC

[jira] [Resolved] (THRIFT-2503) C++: Fix name collision when RPC function argument is called "val"

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

Alexander Potashev resolved THRIFT-2503.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9.2

> C++: Fix name collision when RPC function argument is called "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
>             Fix For: 0.9.2
>
>
> 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;
>   }



--
This message was sent by Atlassian JIRA
(v6.2#6252)