[thrift] retool oop.erl, fix tBufferedTransportFactory.erl
authorChristopher Piro <cpiro@apache.org>
Sat, 13 Oct 2007 01:11:46 +0000 (01:11 +0000)
committerChristopher Piro <cpiro@apache.org>
Sat, 13 Oct 2007 01:11:46 +0000 (01:11 +0000)
commitb6dcd2b595724fd9c3d575466db8394dc16be3ae
treebff0f569f3a1bd1d3ab10ee082a9b53f4e4a360c
parentb92e3164767027e7b0048717dcac6741c31d7a3e
[thrift] retool oop.erl, fix tBufferedTransportFactory.erl

Summary: oop.erl used to assume that an undef or function_clause meant a method wasn't defined, but sometimes a method does exist and an undef happens while it's executing.

Case in point, getTransport in tBufferedTransportFactory totally didn't work and instead of exiting, oop.erl fell back silently to tTransportFactory, so everywhere I thought I was talking to tBufferedTransport, I was talking directly to the tSocket.  borkborkbork.

Blame: all me baby

Reviewed By: eletuchy

Test Plan: channel server works

Revert Plan: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665299 13f79535-47bb-0310-9956-ffa450edef68
lib/erl/src/oop.erl
lib/erl/src/protocol/tBinaryProtocol.erl
lib/erl/src/transport/tBufferedTransport.erl
lib/erl/src/transport/tBufferedTransportFactory.erl
lib/erl/src/transport/tSocket.erl
lib/erl/src/transport/tTransport.erl