THRIFT-716. java: Field names can conflict with local variables in code for unions
authorBryan Duxbury <bryanduxbury@apache.org>
Sun, 28 Feb 2010 05:19:38 +0000 (05:19 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Sun, 28 Feb 2010 05:19:38 +0000 (05:19 +0000)
commit4e7cf25b9574eb439b329070fd57e854948144df
treedab0985ce758bdf31689f07d92bfb0f831c5997a
parent30dd725952ddce68eecc645426443a5ebb3bec52
THRIFT-716. java: Field names can conflict with local variables in code for unions

This patch resolves the name clash issue by removing the unnecessary parameters from the generated method and using the protected variables directly instead.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@917130 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_java_generator.cc
lib/java/src/org/apache/thrift/TUnion.java