I wanted to introduce a standard tree structure in Apache, but I encountered the following problem:
[ERROR:/path_to_project/thrift/service.thrift:31] (last token was 'TCategoryTree') Type "TCategoryTree" has not been defined.
These are my lean structures:
struct TCategory { 1: required string name } struct TCategoryTree { 1: required TCategory element, 2: optional list<TCategoryTree> children }
Line 31 is 2: optional list<TCategoryTree> children
, where I define a field that has the same type that I am defining right now.
Could it be that apache thrift does not support recursive structures or am I making some kind of mistake here?
edit: I am using version 0.9.0
source share