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:
Richard Frith-Macdonald 2003-07-04 06:32:14 +00:00
parent 9c93fb1aa6
commit 8831b90cc5
2 changed files with 20 additions and 0 deletions

View file

@ -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

View file

@ -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)
{