Fix code gen to getTransport() not getOutputTransport()
authorMark Slee <mcslee@apache.org>
Fri, 9 Feb 2007 02:14:43 +0000 (02:14 +0000)
committerMark Slee <mcslee@apache.org>
Fri, 9 Feb 2007 02:14:43 +0000 (02:14 +0000)
Reviewed By: wayne

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

compiler/cpp/src/generate/t_java_generator.cc
compiler/cpp/src/generate/t_php_generator.cc
compiler/cpp/src/generate/t_py_generator.cc

index e3a3166..8894c99 100644 (file)
@@ -808,7 +808,7 @@ void t_java_generator::generate_service_client(t_service* tservice) {
     f_service_ <<
       indent() << "args.write(oprot_);" << endl <<
       indent() << "oprot_.writeMessageEnd();" << endl <<
-      indent() << "oprot_.getOutputTransport().flush();" << endl;
+      indent() << "oprot_.getTransport().flush();" << endl;
 
     scope_down(f_service_);
     f_service_ << endl;
@@ -1100,7 +1100,7 @@ void t_java_generator::generate_process_function(t_service* tservice,
     indent() << "oprot.writeMessageBegin(new TMessage(\"" << tfunction->get_name() << "\", TMessageType.REPLY, seqid));" << endl <<
     indent() << "result.write(oprot);" << endl <<
     indent() << "oprot.writeMessageEnd();" << endl <<
-    indent() << "oprot.getOutputTransport().flush();" << endl;
+    indent() << "oprot.getTransport().flush();" << endl;
 
   // Close function
   scope_down(f_service_);
index 7ebf747..cee4065 100644 (file)
@@ -758,7 +758,7 @@ void t_php_generator::generate_process_function(t_service* tservice,
     f_service_ <<
       indent() << "$output->writeMessageBegin('" << tfunction->get_name() << "', TMessageType::REPLY, $seqid);" << endl <<
       indent() << "$result->write($output);" << endl <<
-      indent() << "$output->getOutputTransport()->flush();" << endl;
+      indent() << "$output->getTransport()->flush();" << endl;
   }
 
   // Close function
@@ -1013,7 +1013,7 @@ void t_php_generator::generate_service_client(t_service* tservice) {
         f_service_ <<
           indent() << "$args->write($this->output_);" << endl <<
           indent() << "$this->output_->writeMessageEnd();" << endl <<
-          indent() << "$this->output_->getOutputTransport()->flush();" << endl;
+          indent() << "$this->output_->getTransport()->flush();" << endl;
       }   
       
     scope_down(f_service_);
index 5190de3..04a67c9 100644 (file)
@@ -642,7 +642,7 @@ void t_py_generator::generate_service_client(t_service* tservice) {
       f_service_ <<
         indent() << "args.write(self._oprot)" << endl <<
         indent() << "self._oprot.writeMessageEnd()" << endl <<
-        indent() << "self._oprot.otrans.flush()" << endl;  
+        indent() << "self._oprot.trans.flush()" << endl;  
 
     indent_down();
 
@@ -1005,7 +1005,7 @@ void t_py_generator::generate_process_function(t_service* tservice,
     indent() << "oprot.writeMessageBegin(\"" << tfunction->get_name() << "\", TMessageType.REPLY, seqid)" << endl <<
     indent() << "result.write(oprot)" << endl <<
     indent() << "oprot.writeMessageEnd()" << endl <<
-    indent() << "oprot.otrans.flush()" << endl;
+    indent() << "oprot.trans.flush()" << endl;
 
   // Close function
   indent_down();