THRIFT-733. Don't use scripting bridge extension's className method because it's...
authorAndrew McGeachie <geechorama@apache.org>
Wed, 19 May 2010 15:00:26 +0000 (15:00 +0000)
committerAndrew McGeachie <geechorama@apache.org>
Wed, 19 May 2010 15:00:26 +0000 (15:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@946208 13f79535-47bb-0310-9956-ffa450edef68

lib/cocoa/src/transport/THTTPClient.m

index 6711a0a..1eaa859 100644 (file)
   if (![response isKindOfClass: [NSHTTPURLResponse class]]) {
     @throw [TTransportException exceptionWithName: @"TTransportException"
                                            reason: [NSString stringWithFormat: @"Unexpected NSURLResponse type: %@",
-                                                    [response className]]];
+                                                    NSStringFromClass([response class])]];
   }
 
   NSHTTPURLResponse * httpResponse = (NSHTTPURLResponse *) response;