Code Review
/
common
/
thrift.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d522421
)
THRIFT-1913 skipping unknown fields in java unions
author
Jens Geyer
<jensg@apache.org>
Sun, 9 Jun 2013 12:10:57 +0000
(14:10 +0200)
committer
Jens 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
patch
|
blob
|
history
diff --git
a/compiler/cpp/src/generate/t_java_generator.cc
b/compiler/cpp/src/generate/t_java_generator.cc
index
988bbbf
..
7500f30
100644
(file)
--- a/
compiler/cpp/src/generate/t_java_generator.cc
+++ b/
compiler/cpp/src/generate/t_java_generator.cc
@@
-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;