THRIFT-632. java: Constants of enum types don't behave well
authorBryan Duxbury <bryanduxbury@apache.org>
Fri, 18 Dec 2009 19:41:11 +0000 (19:41 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Fri, 18 Dec 2009 19:41:11 +0000 (19:41 +0000)
commit2d80470bcb1a7e41ef0668194ab97bb65342baac
tree00cacf2bfbe22d4336e2c74fd0e45b37dd08d71e
parente533bace3d462ebad7c65d7de4fd167a0ffbe740
THRIFT-632. java: Constants of enum types don't behave well

This patch causes constants of all types to be resolved differently by the compiler, and makes it so that constants of enum types contain a reference to the enum type so that code generators can produce the correct names.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@892358 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_java_generator.cc
compiler/cpp/src/main.cc
compiler/cpp/src/parse/t_const_value.h
compiler/cpp/src/parse/t_enum.h
compiler/cpp/src/parse/t_enum_value.h
compiler/cpp/src/parse/t_scope.h
compiler/cpp/src/parse/t_struct.h
compiler/cpp/src/thrifty.yy
lib/java/test/org/apache/thrift/test/TCompactProtocolTest.java
test/DebugProtoTest.thrift