[Mono-bugs] [Bug 55509][Nor] New - XML serializer can't deserialize empty enums

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 12 Mar 2004 10:21:12 -0500 (EST)


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 vargaz@freemail.hu.

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

--- shadow/55509	2004-03-12 10:21:11.000000000 -0500
+++ shadow/55509.tmp.18590	2004-03-12 10:21:11.000000000 -0500
@@ -0,0 +1,27 @@
+Bug#: 55509
+Product: Mono: Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: vargaz@freemail.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: XML serializer can't deserialize empty enums
+
+When running the attached test case, the XML serializer throws an exception:
+
+Unhandled Exception: System.InvalidOperationException: '' is not a valid
+value for MapModifiers.
+
+Since the enum type has the [Flags] attribute, the deserizalier should handle
+an empty values as a 0. This is how it works under MS.NET.
+
+This bug prevents IKVM.NET from compiling under mono.