[Mono-bugs] [Bug 78207][Nor] New - [PATCH] Members should not be initialized with defaults on deserialization

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Apr 26 09:12:52 EDT 2006


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=78207

--- shadow/78207	2006-04-26 09:12:52.000000000 -0400
+++ shadow/78207.tmp.9623	2006-04-26 09:12:52.000000000 -0400
@@ -0,0 +1,32 @@
+Bug#: 78207
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.XML
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [PATCH] Members should not be initialized with defaults on deserialization
+
+1) We current initialize all members, which have a DefaultValueAttribute 
+applied to it, to that default value before deserializing from XML.
+
+This does not match the behavior of MS.NET.
+
+2) To deserialize a value to a string array we only split on a blank 
+(0x20), but we should instead split on all whitespace characters.
+
+3) The serialization code generator does not support deserializing a flag 
+enum value.
+
+The attached patch fixes these issues and adds unit tests.
+
+Let me know if it's ok to commit.


More information about the mono-bugs mailing list