From: Andrew McGeachie Date: Wed, 19 May 2010 15:00:26 +0000 (+0000) Subject: THRIFT-733. Don't use scripting bridge extension's className method because it's... X-Git-Tag: 0.4.0~60 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=7ceba947212b6709adac7395a29d39376c50c9a4;p=common%2Fthrift.git THRIFT-733. Don't use scripting bridge extension's className method because it's not available on iPhone. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@946208 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/lib/cocoa/src/transport/THTTPClient.m b/lib/cocoa/src/transport/THTTPClient.m index 6711a0a3..1eaa859b 100644 --- a/lib/cocoa/src/transport/THTTPClient.m +++ b/lib/cocoa/src/transport/THTTPClient.m @@ -140,7 +140,7 @@ if (![response isKindOfClass: [NSHTTPURLResponse class]]) { @throw [TTransportException exceptionWithName: @"TTransportException" reason: [NSString stringWithFormat: @"Unexpected NSURLResponse type: %@", - [response className]]]; + NSStringFromClass([response class])]]; } NSHTTPURLResponse * httpResponse = (NSHTTPURLResponse *) response;