Author: lluis
Date: 2005-06-13 10:44:51 -0400 (Mon, 13 Jun 2005)
New Revision: 45876
Modified:
trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog
trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs
Log:
2005-06-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* RealProxy.cs: Report invalid return type of values using
InvalidCastException, like MS.NET. Fixes bug #75203.
Modified: trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog
2005-06-13 14:40:52 UTC (rev 45875)
+++ trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/ChangeLog
2005-06-13 14:44:51 UTC (rev 45876)
@@ -1,3 +1,8 @@
+2005-06-13 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * RealProxy.cs: Report invalid return type of values using
+ InvalidCastException, like MS.NET. Fixes bug #75203.
+
2004-10-26 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* RealProxy.cs: Added _targetDomainId and _targetUri fields, which are
Modified: trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs
===================================================================
--- trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs
2005-06-13 14:40:52 UTC (rev 45875)
+++ trunk/mcs/class/corlib/System.Runtime.Remoting.Proxies/RealProxy.cs
2005-06-13 14:44:51 UTC (rev 45876)
@@ -286,7 +286,7 @@
MethodInfo mi = (MethodInfo) call.MethodBase;
if (mrm.ReturnValue != null &&
!mi.ReturnType.IsInstanceOfType (mrm.ReturnValue))
- throw new RemotingException ("Return value has
an invalid type");
+ throw new InvalidCastException ("Return value
has an invalid type");
// Check out parameters
@@ -319,7 +319,7 @@
object outArg = mrm.GetOutArg
(nout++);
if (outArg != null &&
!par.ParameterType.IsInstanceOfType (outArg))
{
- throw new
RemotingException ("Return argument '" + par.Name + "' has an invalid type");
+ throw new
InvalidCastException ("Return argument '" + par.Name + "' has an invalid type");
}
outArgs [narg++] = outArg;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches