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

Jens Geyer resolved THRIFT-4554.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 0.12.0

> uncompileable code with member names that are also types under specific 
> conditions
> ----------------------------------------------------------------------------------
>
>                 Key: THRIFT-4554
>                 URL: https://issues.apache.org/jira/browse/THRIFT-4554
>             Project: Thrift
>          Issue Type: Bug
>          Components: Delphi - Compiler
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Major
>             Fix For: 0.12.0
>
>
> {code}
> enum Foobar {
>   Foo = 0,
>   Bar = 1,
>   Baz = 2,
> }
> struct SomeStruct {
>   1 : optional double MinValue
>   2 : optional double MaxValue
>   3 : optional bool Integer  // causes issue
>   4 : optional Foobar Foo
> }
> {code}
> generates uncompileable delphi code around field #4 (not 3!), because of a 
> type cast that uses unqualified {{Integer}}.
> Workaround: don't name the field "Integer" ... :-)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to