[Mono-bugs] [Bug 77311][Wis] Changed - XmlSerializer fails to serialise generic dictionary

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Apr 28 14:01:08 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 atsushi at ximian.com.

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

--- shadow/77311	2006-01-19 21:51:07.000000000 -0500
+++ shadow/77311.tmp.29150	2006-04-28 14:01:08.000000000 -0400
@@ -1,13 +1,13 @@
 Bug#: 77311
 Product: Mono: Class Libraries
 Version: 1.1
 OS: unknown
 OS Details: 
-Status: NEW   
-Resolution: 
+Status: RESOLVED   
+Resolution: FIXED
 Severity: Unknown
 Priority: Wishlist
 Component: Sys.XML
 AssignedTo: lluis at ximian.com                            
 ReportedBy: colin at breame.net               
 QAContact: mono-bugs at ximian.com
@@ -76,6 +76,43 @@
 
 ------- Additional Comments From atsushi at ximian.com  2006-01-19 21:51 -------
 NORMAL->WISHLIST
 
 XmlSerializer does not handle (at least "does not consider") generic
 stuff yet (as far as I know).
+
+------- Additional Comments From atsushi at ximian.com  2006-04-28 14:01 -------
+Actually this repro code raises NotSupportedException which is exactly
+the same as what mono throws.
+
+Unhandled Exception: System.NotSupportedException: The type
+System.Collections.G
+eneric.Dictionary`2[[System.String, mscorlib, Version=2.0.0.0,
+Culture=neutral,
+PublicKeyToken=b77a5c561934e089],[System.String, mscorlib,
+Version=2.0.0.0, Cult
+ure=neutral, PublicKeyToken=b77a5c561934e089]] is not supported
+because it imple
+ments IDictionary.
+   at System.Xml.Serialization.TypeScope.GetDefaultIndexer(Type type,
+String mem
+berInfo)
+   at System.Xml.Serialization.TypeScope.ImportTypeDesc(Type type,
+MemberInfo me
+mberInfo, Boolean directReference)
+   at System.Xml.Serialization.TypeScope.GetTypeDesc(Type type,
+MemberInfo sourc
+e, Boolean directReference, Boolean throwOnError)
+   at System.Xml.Serialization.ModelScope.GetTypeModel(Type type,
+Boolean direct
+Reference)
+   at
+System.Xml.Serialization.XmlReflectionImporter.ImportTypeMapping(Type type
+, XmlRootAttribute root, String defaultNamespace)
+   at System.Xml.Serialization.XmlSerializer..ctor(Type type, String
+defaultName
+space)
+   at System.Xml.Serialization.XmlSerializer..ctor(Type type)
+   at main_t.Main()
+
+
+So, this bug seems fixed.


More information about the mono-bugs mailing list