[Mono-bugs] [Bug 65415][Nor] New - Mono does not throw exception for passing MBR through remoting

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 6 Sep 2004 21:23:42 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=65415

--- shadow/65415	2004-09-06 21:23:42.000000000 -0400
+++ shadow/65415.tmp.15582	2004-09-06 21:23:42.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 65415
+Product: Mono: Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: bmaurer@users.sf.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono does not throw exception for passing MBR through remoting
+
+using System;
+
+class X : MarshalByRefObject {
+	static void Main () {
+		AppDomain ad = AppDomain.CreateDomain ("MyFriendlyDomain");
+		X x = (X) ad.CreateInstanceFromAndUnwrap ("t.exe", "X");
+		x.Foo (new X ());
+	}
+	
+	
+	public void Foo (X x)
+	{
+	}
+}
+
+in this case, Microsoft will throw an exception. In 1.0 it is a
+S.R.R.RemotingException, in 2.0 it is a System.Argument exception.