THRIFT-1913 skipping unknown fields in java unions
authorJens Geyer <jensg@apache.org>
Sun, 9 Jun 2013 12:10:57 +0000 (14:10 +0200)
committerJens Geyer <jensg@apache.org>
Sun, 9 Jun 2013 12:10:57 +0000 (14:10 +0200)
Patch: Hrushikesh Tilak

compiler/cpp/src/generate/t_java_generator.cc

index 988bbbf..7500f30 100644 (file)
@@ -1043,6 +1043,7 @@ void t_java_generator::generate_standard_scheme_read_value(ofstream& out, t_stru
   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;