From d62032850caf9c76f5069e5c53d34e433b05da58 Mon Sep 17 00:00:00 2001 From: Bryan Duxbury Date: Tue, 26 Jun 2012 00:32:57 +0000 Subject: [PATCH] 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 git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1353784 13f79535-47bb-0310-9956-ffa450edef68 --- compiler/cpp/src/parse/t_struct.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/cpp/src/parse/t_struct.h b/compiler/cpp/src/parse/t_struct.h index aeee112e..b82933dd 100644 --- a/compiler/cpp/src/parse/t_struct.h +++ b/compiler/cpp/src/parse/t_struct.h @@ -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) { -- 2.17.1