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 2018/04/13 22:55:00 UTC
[jira] [Resolved] (THRIFT-4554) uncompileable code with member
names that are also types under specific conditions
[ 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)