mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
Fix recursion problem
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17093 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9c93fb1aa6
commit
8831b90cc5
2 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-07-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSDistantObject.m: Avoid recursion fetching method signature
|
||||
|
||||
2003-07-03 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSCalendarDate: ([-initWithString:calendarFormat:]) default
|
||||
|
|
|
@ -791,6 +791,22 @@ enum
|
|||
}
|
||||
return sig;
|
||||
}
|
||||
/*
|
||||
* Simlarly, when we fetch a method signature form the remote end,
|
||||
* we get a proxy, and when we build a local signature we need to
|
||||
* ask the proxy for its types ... and must avoid recursion again.
|
||||
*/
|
||||
if (sel_eq(aSelector, @selector(methodType)))
|
||||
{
|
||||
static NSMethodSignature *sig = nil;
|
||||
|
||||
if (sig == nil)
|
||||
{
|
||||
sig = [NSMethodSignature signatureWithObjCTypes: "*@:"];
|
||||
RETAIN(sig);
|
||||
}
|
||||
return sig;
|
||||
}
|
||||
|
||||
if (_protocol != nil)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue