Fix more deprecated name usages
authorKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:03:03 +0000 (01:03 +0000)
committerKevin Clark <kclark@apache.org>
Wed, 18 Jun 2008 01:03:03 +0000 (01:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668933 13f79535-47bb-0310-9956-ffa450edef68

lib/rb/lib/thrift/protocol/binaryprotocol.rb
lib/rb/lib/thrift/server.rb

index b344faf..aa2c9d2 100644 (file)
@@ -184,7 +184,7 @@ module Thrift
 
   class BinaryProtocolFactory < ProtocolFactory
     def get_protocol(trans)
-      return TBinaryProtocol.new(trans)
+      return Thrift::BinaryProtocol.new(trans)
     end
   end
   deprecate_class! :TBinaryProtocolFactory => BinaryProtocolFactory
index d19a5b2..de10794 100644 (file)
@@ -39,7 +39,7 @@ module Thrift
             while (true)
               @processor.process(prot, prot)
             end
-          rescue TTransportException, Thrift::ProtocolException => ttx
+          rescue Thrift::TransportException, Thrift::ProtocolException => ttx
             #print ttx,"\n"
           ensure
             trans.close()
@@ -73,7 +73,7 @@ module Thrift
               while (true)
                 @processor.process(p, p)
               end
-            rescue TTransportException, Thrift::ProtocolException => e
+            rescue Thrift::TransportException, Thrift::ProtocolException => e
             ensure
               t.close()
             end
@@ -120,7 +120,7 @@ module Thrift
                   while (true)
                     @processor.process(prot, prot)
                   end
-                rescue TTransportException, Thrift::ProtocolException => e
+                rescue Thrift::TransportException, Thrift::ProtocolException => e
                 ensure
                   trans.close()
                 end