THRIFT-1913 skipping unknown fields in java unions
Patch: Hrushikesh Tilak
diff --git a/compiler/cpp/src/generate/t_java_generator.cc b/compiler/cpp/src/generate/t_java_generator.cc
index 988bbbf..7500f30 100644
--- a/compiler/cpp/src/generate/t_java_generator.cc
+++ b/compiler/cpp/src/generate/t_java_generator.cc
@@ -1043,6 +1043,7 @@
indent_down();
indent(out) << "} else {" << endl;
indent_up();
+ indent(out) << "org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);" << endl;
indent(out) << "return null;" << endl;
indent_down();
indent(out) << "}" << endl;