diff options
Diffstat (limited to 'mcs/class/corlib/System.Runtime.Remoting.Messaging')
-rw-r--r-- | mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodCall.cs | 7 |
2 files changed, 7 insertions, 5 deletions
diff --git a/mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog b/mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog index 87e4e0902e6..31b0acd440c 100644 --- a/mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog +++ b/mcs/class/corlib/System.Runtime.Remoting.Messaging/ChangeLog @@ -1,3 +1,8 @@ +2004-07-22 Lluis Sanchez Gual <lluis@novell.com> + + * MethodCall.cs: Use RemotingServices.GetMethodBaseFromName to get the + MethodBase from the method name. This fixes bug #61774. + 2004-06-18 Sebastien Pouliot <sebastien@ximian.com> * ReturnMessage.cs: Added IMessage interface to class definition. diff --git a/mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodCall.cs b/mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodCall.cs index 9313d3aa0cb..47dbb9d0beb 100644 --- a/mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodCall.cs +++ b/mcs/class/corlib/System.Runtime.Remoting.Messaging/MethodCall.cs @@ -288,11 +288,8 @@ namespace System.Runtime.Remoting.Messaging { Type type = RemotingServices.GetServerTypeForUri (_uri); if (type == null) throw new RemotingException ("Requested service not found. No receiver for uri " + _uri); - if (CanCastTo (_typeName, type)) - { - BindingFlags bflags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic; - if (_methodSignature == null) _methodBase = type.GetMethod (_methodName, bflags); - else _methodBase = type.GetMethod (_methodName, bflags, null, _methodSignature, null); + if (CanCastTo (_typeName, type)) { + _methodBase = RemotingServices.GetMethodBaseFromName (type, _methodName, _methodSignature); return; } else |