[Mono-bugs] [Bug 49879][Wis] Changed - XML serialization doesn't handle recursion

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 20 Oct 2003 15:05:45 -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 miguel@ximian.com.

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

--- shadow/49879	2003-10-20 14:52:53.000000000 -0400
+++ shadow/49879.tmp.30908	2003-10-20 15:05:45.000000000 -0400
@@ -44,6 +44,17 @@
 		ser.bum = bum;
 		XmlSerializer serial = new XmlSerializer (typeof (Bum));
 		serial.Serialize (Console.Out, bum);
 	}
 }
 
+
+------- Additional Comments From miguel@ximian.com  2003-10-20 15:05 -------
+Microsoft runtime reports:
+
+InvalidOperationException: A circular reference was detected while
+serializing an object of type Bum
+
+Notice that the above example from Alex does not work on .NET, because
+the Bum and Ser classes are not public.
+
+We should also catch thta.