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 2014/05/30 18:51:04 UTC

[jira] [Assigned] (THRIFT-2560) Thrift compiler generator tries to concat ints with strings using +

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

Jens Geyer reassigned THRIFT-2560:
----------------------------------

    Assignee: Jens Geyer  (was: Randy Abernethy)

> Thrift compiler generator tries to concat ints with strings using +
> -------------------------------------------------------------------
>
>                 Key: THRIFT-2560
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2560
>             Project: Thrift
>          Issue Type: Bug
>          Components: C# - Compiler, Compiler (General), Delphi - Compiler
>    Affects Versions: 0.9.1
>         Environment: all
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Minor
>             Fix For: 0.9.2
>
>
> The t_csharp_generator.cc source tries to throw a string by adding a string literal ("") and an int (t_base_type::t_base) in several places (same bug appears in delphi and d generators).
> e.g. throw "compiler error: no C# name for base type " + tbase->get_base();
> changed to:
>     {
>       std::stringstream ss;
>       ss << "compiler error: no C# name for base type " << tbase->get_base();
>       throw ss.str();
>     }



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