[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 19:00:48 -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 lluis@ximian.com.

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

--- shadow/49879	2003-10-20 15:05:45.000000000 -0400
+++ shadow/49879.tmp.1334	2003-10-20 19:00:48.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 49879
 Product: Mono/Class Libraries
 Version: unspecified
 OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Wishlist
 Component: System.XML
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: orphennui@yahoo.com               
 QAContact: mono-bugs@ximian.com
@@ -55,6 +55,17 @@
 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.
+
+------- Additional Comments From lluis@ximian.com  2003-10-20 19:00 -------
+I added a check for circular references. Now it behaves like MS.
+Notice that if you use encoded format you can have circular
+references. So, for example, this will work:
+
+SoapReflectionImporter im = new SoapReflectionImporter ();
+XmlTypeMapping map = im.ImportTypeMapping (typeof (Bum));
+XmlSerializer serial = new XmlSerializer (map);
+serial.Serialize (Console.Out, bum);
+