[Mono-bugs] [Bug 372780] sgen.exe generates invalid XmlSerializerContract

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 21 00:20:35 EDT 2008


User atsushi at ximian.com added comment

Atsushi Enomoto <atsushi at ximian.com> changed:

           What    |Removed                                         |Added
                 CC|                                                |atsushi at ximian.com
          Component|tools                                           |Sys.XML
            Product|Mono: Tools                                     |Mono: Class Libraries

--- Comment #1 from Atsushi Enomoto <atsushi at ximian.com>  2008-03-20 22:20:34 MST ---
It would be nicer if you attach reproducible case. I think I have a better:)
fix but I cannot verify if it works.

Index: System.Xml.Serialization/XmlReflectionImporter.cs
--- System.Xml.Serialization/XmlReflectionImporter.cs   (revision 98517)
+++ System.Xml.Serialization/XmlReflectionImporter.cs   (working copy)
@@ -212,6 +212,10 @@

                        try {
                                XmlTypeMapping map;
+#if NET_2_0
+                               // bug #203242
+                               map.SetKey (typeData.Type.ToString ());

                                switch (typeData.SchemaType) {
                                        case SchemaTypes.Class: map =
ImportClassMapping (typeData, root, defaultNamespace); break;

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list