THRIFT-445. rb: client and processor do not inherit from the proper namespace scope
authorBryan Duxbury <bryanduxbury@apache.org>
Mon, 13 Apr 2009 17:48:23 +0000 (17:48 +0000)
committerBryan Duxbury <bryanduxbury@apache.org>
Mon, 13 Apr 2009 17:48:23 +0000 (17:48 +0000)
This patch adds namespace support to a client and processor extended from an included thrift def with its own namespace.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@764540 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_rb_generator.cc

index ec3666f..6dcbb5c 100644 (file)
@@ -707,7 +707,7 @@ void t_rb_generator::generate_service_client(t_service* tservice) {
   string extends = "";
   string extends_client = "";
   if (tservice->get_extends() != NULL) {
-    extends = type_name(tservice->get_extends());
+    extends = full_type_name(tservice->get_extends());
     extends_client = " < " + extends + "::Client ";
   }
 
@@ -839,7 +839,7 @@ void t_rb_generator::generate_service_server(t_service* tservice) {
   string extends = "";
   string extends_processor = "";
   if (tservice->get_extends() != NULL) {
-    extends = type_name(tservice->get_extends());
+    extends = full_type_name(tservice->get_extends());
     extends_processor = " < " + extends + "::Processor ";
   }