[Mono-bugs] [Bug 77501][Nor] Changed - [PATCH] Numeric value for enum is serialized as primitive type

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 10 11:58:54 EST 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=77501

--- shadow/77501	2006-02-09 11:19:33.000000000 -0500
+++ shadow/77501.tmp.30813	2006-02-10 11:58:54.000000000 -0500
@@ -1,13 +1,13 @@
 Bug#: 77501
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Normal
 Component: Sys.XML
 AssignedTo: lluis at ximian.com                            
 ReportedBy: gert.driesen at pandora.be               
 QAContact: mono-bugs at ximian.com
@@ -68,6 +68,17 @@
 The patch is ok. Maybe the it would be better to move that enum type
 check inside GetRealTypeMap? The resulting code would be cleaner.
 
 Does the code generator need to be fixed as well?
 
 
+
+------- Additional Comments From gert.driesen at pandora.be  2006-02-10 11:58 -------
+I modified the patch to do the check in 
+XmlTypeMapping.GetRealTypeMap instead. I already committed the patch 
+yesterday, but didn't have time (until now) to add this info to the 
+bug report.
+
+The code generator does not need to be fixed. It's even working 
+better as it already serializes the enum constant with its name 
+instead of its integral value. The code generator is in fact much 
+better in many cases, too bad its also much slower ...


More information about the mono-bugs mailing list