[Mono-bugs] [Bug 80759][Nor] Changed - XmlSerializer behavior difference with Microsoft

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Apr 22 16:48:58 EDT 2007


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 gert.driesen at pandora.be.

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

--- shadow/80759	2007-02-14 11:56:11.000000000 -0500
+++ shadow/80759.tmp.27006	2007-04-22 16:48:58.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 80759
 Product: Mono: Class Libraries
 Version: 1.2
 OS: Windows XP
 OS Details: 
-Status: RESOLVED   
-Resolution: FIXED
+Status: REOPENED   
+Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Sys.XML
 AssignedTo: atsushi at ximian.com                            
 ReportedBy: bugzilla at woy.nl               
 QAContact: mono-bugs at ximian.com
@@ -163,6 +163,36 @@
         get { return NullableInt.HasValue; }
     }
 }
 
 ------- Additional Comments From atsushi at ximian.com  2007-02-14 11:56 -------
 Fixed in svn.
+
+------- Additional Comments From gert.driesen at pandora.be  2007-04-22 16:48 -------
+Apparently, our serialization code generator doesn't yet support 
+nullable types:
+
+$ env MONO_XMLSERIALIZER_THS=0,nofallback mono test.exe
+
+Error while compiling generated serializer
+/tmp/64513483/2e2cfcd8.cs(142,88) : error CS1501: No overload for 
+method `ToString' takes `1' arguments
+
+Unhandled Exception: System.InvalidOperationException: There was an 
+error generating the XML document. ---> 
+System.InvalidOperationException: Error while generating serializer
+  at System.Xml.Serialization.XmlSerializer.CreateWriter 
+(System.Xml.Serialization.XmlMapping typeMapping) [0x00000] 
+  at System.Xml.Serialization.XmlSerializer.Serialize 
+(System.Xml.XmlWriter writer, System.Object o, 
+System.Xml.Serialization.XmlSerializerNamespaces namespaces) 
+[0x00000] --- End of inner exception stack trace ---
+  at System.Xml.Serialization.XmlSerializer.Serialize 
+(System.Xml.XmlWriter writer, System.Object o, 
+System.Xml.Serialization.XmlSerializerNamespaces namespaces) 
+[0x00000] 
+  at System.Xml.Serialization.XmlSerializer.Serialize 
+(System.IO.Stream stream, System.Object o) [0x00000] 
+  at Program.Main () [0x00000] 
+
+Let me know if you want me to open a separate bug report.
+


More information about the mono-bugs mailing list