diff options
author | Bryan Duxbury <bryanduxbury@apache.org> | 2009-11-19 17:26:38 +0000 |
---|---|---|
committer | Bryan Duxbury <bryanduxbury@apache.org> | 2009-11-19 17:26:38 +0000 |
commit | 9af23d9327277a791c8b22c4323b8e17e2bfc378 (patch) | |
tree | 54b140c45dbb123fe46037ed5532c8519b49a1d2 /test/DebugProtoTest.thrift | |
parent | e476480691d114ad1f1a9794bd10b34df6554ad2 (diff) | |
download | thrift-9af23d9327277a791c8b22c4323b8e17e2bfc378.tar.gz |
THRIFT-551. java: Enumeration doesn't generate real enum in Java
This patch makes the compiler generate actual Enum classes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@882211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/DebugProtoTest.thrift')
-rw-r--r-- | test/DebugProtoTest.thrift | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift index 5b2f672e6..549462eb7 100644 --- a/test/DebugProtoTest.thrift +++ b/test/DebugProtoTest.thrift @@ -252,6 +252,11 @@ service ReverseOrderService { void myMethod(4: string first, 3: i16 second, 2: i32 third, 1: i64 fourth); } +enum SomeEnum { + ONE + TWO +} + union TestUnion { /** * A doc string @@ -261,6 +266,7 @@ union TestUnion { 3: OneOfEach struct_field; 4: list<RandomStuff> struct_list; 5: i32 other_i32_field; + 6: SomeEnum enum_field; } union ComparableUnion { |