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 2023/03/06 20:53:00 UTC

[jira] [Updated] (THRIFT-5690) Type not defined when type defined after use

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

Jens Geyer updated THRIFT-5690:
-------------------------------
    Description: 
{code}
struct Test {
10: optional Foo foo = {};
}

struct Foo {
10: optional string bar;
}
{code}

Tried with thrift 0.18.0/0.18.1

{code}
[ERROR] thrift failed output: Type "Foo" not defined
{code} 

Best guess can be related with https://issues.apache.org/jira/browse/THRIFT-5626

  was:
```thrift
struct Test {
10: optional Foo foo = {};
}

struct Foo {
10: optional string bar;
}
```
 

Tried with thrift 0.18.0/0.18.1

 

```

[ERROR] thrift failed output: Type "Foo" not defined

```

 

Best guess can be related with https://issues.apache.org/jira/browse/THRIFT-5626


> Type not defined when type defined after use
> --------------------------------------------
>
>                 Key: THRIFT-5690
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5690
>             Project: Thrift
>          Issue Type: Bug
>            Reporter: Bogdan Drutu
>            Priority: Major
>
> {code}
> struct Test {
> 10: optional Foo foo = {};
> }
> struct Foo {
> 10: optional string bar;
> }
> {code}
> Tried with thrift 0.18.0/0.18.1
> {code}
> [ERROR] thrift failed output: Type "Foo" not defined
> {code} 
> Best guess can be related with https://issues.apache.org/jira/browse/THRIFT-5626



--
This message was sent by Atlassian Jira
(v8.20.10#820010)