Author: bryanduxbury
Date: Tue Jun 26 00:32:57 2012
New Revision: 1353784

URL: http://svn.apache.org/viewvc?rev=1353784&view=rev
Log:
THRIFT-1624. java: Isset Generated differently on different platforms

This patch initializes is_union_ to a specific value to try and avoid the issue.

Patch: Brian Bloniarz

Modified:
    thrift/trunk/compiler/cpp/src/parse/t_struct.h

Modified: thrift/trunk/compiler/cpp/src/parse/t_struct.h
URL: 
http://svn.apache.org/viewvc/thrift/trunk/compiler/cpp/src/parse/t_struct.h?rev=1353784&r1=1353783&r2=1353784&view=diff
==============================================================================
--- thrift/trunk/compiler/cpp/src/parse/t_struct.h (original)
+++ thrift/trunk/compiler/cpp/src/parse/t_struct.h Tue Jun 26 00:32:57 2012
@@ -43,11 +43,13 @@ class t_struct : public t_type {
   t_struct(t_program* program) :
     t_type(program),
     is_xception_(false),
+    is_union_(false),
     xsd_all_(false) {}
 
   t_struct(t_program* program, const std::string& name) :
     t_type(program, name),
     is_xception_(false),
+    is_union_(false),
     xsd_all_(false) {}
 
   void set_name(const std::string& name) {


Reply via email to