[ https://issues.apache.org/jira/browse/THRIFT-4554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jens Geyer updated THRIFT-4554: ------------------------------- Description: {code title:some.thrift} 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" ... :-) was: {code title=some.thrift} 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" ... :-) > 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 > > {code title:some.thrift} > 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)