Author: bryanduxbury
Date: Thu Oct 15 01:20:34 2009
New Revision: 825369
URL: http://svn.apache.org/viewvc?rev=825369&view=rev
Log:
THRIFT-603. rb: Struct read method does not call validate
After reading a struct, we will now call the struct's validate method.
Modified:
incubator/thrift/trunk/lib/rb/ext/struct.c
Modified: incubator/thrift/trunk/lib/rb/ext/struct.c
URL:
http://svn.apache.org/viewvc/incubator/thrift/trunk/lib/rb/ext/struct.c?rev=825369&r1=825368&r2=825369&view=diff
==============================================================================
--- incubator/thrift/trunk/lib/rb/ext/struct.c (original)
+++ incubator/thrift/trunk/lib/rb/ext/struct.c Thu Oct 15 01:20:34 2009
@@ -591,6 +591,9 @@
// read struct end
mt->read_struct_end(protocol);
+ // call validate
+ rb_funcall(self, validate_method_id, 0);
+
return Qnil;
}