[
https://issues.apache.org/jira/browse/THRIFT-2282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer updated THRIFT-2282:
-------------------------------
Description:
The following IDL typedef
{code}
struct Foo
{
1: optional byte myfield
}
typedef Foo Bar
typedef list<Foo> FooList
typedef list<FooList> ListOfFooLists
{code}
wrongly generates a reference to the implementing class:
{code}
TBar = TFooImpl;
{code}
Expected would be a reference to the interface:
{code}
TBar = IFoo;
{code}
Note that it works correctly for containers.
was:
The following IDL typedef
{code}
struct Foo
{
1: optional byte myfield
}
{code}
wrongly generates a reference to the implementing class:
{code}
TBar = TFooImpl;
{code}
Expected would be a reference to the interface:
{code}
TBar = IFoo;
{code}
Note that it works correctly for containers.
> Incorect code generated for some typedefs
> -----------------------------------------
>
> Key: THRIFT-2282
> URL: https://issues.apache.org/jira/browse/THRIFT-2282
> Project: Thrift
> Issue Type: Bug
> Components: Delphi - Compiler
> Affects Versions: 0.9, 0.9.1
> Reporter: Jens Geyer
> Assignee: Jens Geyer
> Fix For: 0.9.2
>
> Attachments: THRIFT-2282-incorrect_code_for_some_typedefs.patch
>
>
> The following IDL typedef
> {code}
> struct Foo
> {
> 1: optional byte myfield
> }
> typedef Foo Bar
> typedef list<Foo> FooList
> typedef list<FooList> ListOfFooLists
> {code}
> wrongly generates a reference to the implementing class:
> {code}
> TBar = TFooImpl;
> {code}
> Expected would be a reference to the interface:
> {code}
> TBar = IFoo;
> {code}
> Note that it works correctly for containers.
--
This message was sent by Atlassian JIRA
(v6.1#6144)