thrift-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James E. King III (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (THRIFT-4554) uncompileable code with member names that are also types under specific conditions
Date Thu, 27 Dec 2018 15:25:13 GMT

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

James E. King III closed THRIFT-4554.
-------------------------------------

> 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)

Mime
View raw message