[Mono-bugs] [Bug 82384][Nor] New - XML serialization using code generation does not support generics
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Aug 9 05:14:28 EDT 2007
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=82384
--- shadow/82384 2007-08-09 05:14:28.000000000 -0400
+++ shadow/82384.tmp.6601 2007-08-09 05:14:28.000000000 -0400
@@ -0,0 +1,283 @@
+Bug#: 82384
+Product: Mono: Class Libraries
+Version: 1.2
+OS: All
+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: XML serialization using code generation does not support generics
+
+Currently, running the System.XML unit tests while forcing the use of our
+code generator results in several unit test failures.
+
+$ export MONO_XMLSERIALIZER_THS=0,nofallback
+$ env PROFILE=net_2_0 make run-test
+
+Expected result:
+
+No test failures.
+
+Actual result:
+
+Note: the first test failure is not related to generics.
+
+Failures:
+1) MonoTests.System.Xml.XmlUrlResolverTests.GetEntityWithRelativeFileUri :
+Expected: ArgumentException but was UnauthorizedAccessException
+ at System.IO.FileStream..ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous,
+FileOptions options) [0x000fe]
+in /home/gert/mono/mcs/class/corlib/System.IO/FileStream.cs:234
+ at System.IO.FileStream..ctor (System.String name, FileMode mode,
+FileAccess access, FileShare share) [0x00000]
+in /home/gert/mono/mcs/class/corlib/System.IO/FileStream.cs:135
+ at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
+ at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri,
+System.String role, System.Type ofObjectToReturn) [0x00068]
+in /home/gert/mono/mcs/class/System.XML/System.Xml/XmlUrlResolver.cs:71
+ at MonoTests.System.Xml.XmlUrlResolverTests.GetEntityWithRelativeFileUri
+() [0x00000]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml/XmlUrlResolverTests
+.cs:80
+ at <0x00000> <unknown method>
+ at (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+ at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00056]
+in /home/gert/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:146
+
+2)
+MonoTests.System.XmlSerialization.DeserializationTests.TestDeserializeGenNe
+stedClass : System.InvalidOperationException : Error while generating
+serializer
+ at System.Xml.Serialization.XmlSerializer.CreateReader
+(System.Xml.Serialization.XmlMapping typeMapping) [0x000c6]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:613
+ at System.Xml.Serialization.XmlSerializer.Deserialize
+(System.Xml.XmlReader xmlReader) [0x00017]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:344
+ at MonoTests.System.XmlSerialization.DeserializationTests.Deserialize
+(System.Type t, System.Xml.XmlReader xr) [0x00007]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/Deser
+ializeTests.cs:71
+ at MonoTests.System.XmlSerialization.DeserializationTests.Deserialize
+(System.Type t, System.String xml) [0x0000e]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/Deser
+ializeTests.cs:44
+ at
+MonoTests.System.XmlSerialization.DeserializationTests.TestDeserializeGenNe
+stedClass () [0x00000]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/Deser
+ializeTests.cs:403
+ at <0x00000> <unknown method>
+ at (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+ at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00056]
+in /home/gert/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:146
+
+3)
+MonoTests.System.XmlSerialization.DeserializationTests.TestDeserializeGenLi
+stClassListNested : System.InvalidOperationException : Error while
+generating serializer
+ at System.Xml.Serialization.XmlSerializer.CreateReader
+(System.Xml.Serialization.XmlMapping typeMapping) [0x000c6]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:613
+ at System.Xml.Serialization.XmlSerializer.Deserialize
+(System.Xml.XmlReader xmlReader) [0x00017]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:344
+ at MonoTests.System.XmlSerialization.DeserializationTests.Deserialize
+(System.Type t, System.Xml.XmlReader xr) [0x00007]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/Deser
+ializeTests.cs:71
+ at MonoTests.System.XmlSerialization.DeserializationTests.Deserialize
+(System.Type t, System.String xml) [0x0000e]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/Deser
+ializeTests.cs:44
+ at
+MonoTests.System.XmlSerialization.DeserializationTests.TestDeserializeGenLi
+stClassListNested () [0x00000]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/Deser
+ializeTests.cs:414
+ at <0x00000> <unknown method>
+ at (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+ at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00056]
+in /home/gert/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:146
+
+4)
+MonoTests.System.XmlSerialization.DeserializationTests.TestDeserializeGenCo
+mplexStruct : System.InvalidOperationException : Error while generating
+serializer
+ at System.Xml.Serialization.XmlSerializer.CreateReader
+(System.Xml.Serialization.XmlMapping typeMapping) [0x000c6]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:613
+ at System.Xml.Serialization.XmlSerializer.Deserialize
+(System.Xml.XmlReader xmlReader) [0x00017]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:344
+ at MonoTests.System.XmlSerialization.DeserializationTests.Deserialize
+(System.Type t, System.Xml.XmlReader xr) [0x00007]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/Deser
+ializeTests.cs:71
+ at MonoTests.System.XmlSerialization.DeserializationTests.Deserialize
+(System.Type t, System.String xml) [0x0000e]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/Deser
+ializeTests.cs:44
+ at
+MonoTests.System.XmlSerialization.DeserializationTests.TestDeserializeGenCo
+mplexStruct () [0x00000]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/Deser
+ializeTests.cs:485
+ at <0x00000> <unknown method>
+ at (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+ at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00056]
+in /home/gert/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:146
+
+5)
+MonoTests.System.XmlSerialization.XmlSerializerTests.TestSerializeGenNested
+Class : System.InvalidOperationException : There was an error generating
+the XML document.
+ ----> System.InvalidOperationException : Error while generating
+serializer
+ at System.Xml.Serialization.XmlSerializer.Serialize
+(System.Xml.XmlWriter writer, System.Object o,
+System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x000a1]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:474
+ at System.Xml.Serialization.XmlSerializer.Serialize
+(System.Xml.XmlWriter xmlWriter, System.Object o) [0x00000]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:427
+ at MonoTests.System.XmlSerialization.XmlSerializerTests.Serialize
+(System.Object o) [0x00017]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSe
+rializerTests.cs:81
+ at
+MonoTests.System.XmlSerialization.XmlSerializerTests.TestSerializeGenNested
+Class () [0x00006]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSe
+rializerTests.cs:2456
+ at <0x00000> <unknown method>
+ at (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+ at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00056]
+in /home/gert/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:146
+--InvalidOperationException
+ at System.Xml.Serialization.XmlSerializer.CreateWriter
+(System.Xml.Serialization.XmlMapping typeMapping) [0x000c6]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:583
+ at System.Xml.Serialization.XmlSerializer.Serialize
+(System.Xml.XmlWriter writer, System.Object o,
+System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x00017]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:453
+
+6)
+MonoTests.System.XmlSerialization.XmlSerializerTests.TestSerializeGenListCl
+assListNested : System.InvalidOperationException : There was an error
+generating the XML document.
+ ----> System.InvalidOperationException : Error while generating
+serializer
+ at System.Xml.Serialization.XmlSerializer.Serialize
+(System.Xml.XmlWriter writer, System.Object o,
+System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x000a1]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:474
+ at System.Xml.Serialization.XmlSerializer.Serialize
+(System.Xml.XmlWriter xmlWriter, System.Object o) [0x00000]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:427
+ at MonoTests.System.XmlSerialization.XmlSerializerTests.Serialize
+(System.Object o) [0x00017]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSe
+rializerTests.cs:81
+ at
+MonoTests.System.XmlSerialization.XmlSerializerTests.TestSerializeGenListCl
+assListNested () [0x00006]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSe
+rializerTests.cs:2471
+ at <0x00000> <unknown method>
+ at (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+ at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00056]
+in /home/gert/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:146
+--InvalidOperationException
+ at System.Xml.Serialization.XmlSerializer.CreateWriter
+(System.Xml.Serialization.XmlMapping typeMapping) [0x000c6]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:583
+ at System.Xml.Serialization.XmlSerializer.Serialize
+(System.Xml.XmlWriter writer, System.Object o,
+System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x00017]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:453
+
+7)
+MonoTests.System.XmlSerialization.XmlSerializerTests.TestSerializeGenComple
+xStruct : System.InvalidOperationException : There was an error generating
+the XML document.
+ ----> System.InvalidOperationException : Error while generating
+serializer
+ at System.Xml.Serialization.XmlSerializer.Serialize
+(System.Xml.XmlWriter writer, System.Object o,
+System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x000a1]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:474
+ at System.Xml.Serialization.XmlSerializer.Serialize
+(System.Xml.XmlWriter xmlWriter, System.Object o) [0x00000]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:427
+ at MonoTests.System.XmlSerialization.XmlSerializerTests.Serialize
+(System.Object o) [0x00017]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSe
+rializerTests.cs:81
+ at
+MonoTests.System.XmlSerialization.XmlSerializerTests.TestSerializeGenComple
+xStruct () [0x00008]
+in /home/gert/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSe
+rializerTests.cs:2561
+ at <0x00000> <unknown method>
+ at (wrapper managed-to-native)
+System.Reflection.MonoMethod:InternalInvoke (object,object[])
+ at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags
+invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
+System.Globalization.CultureInfo culture) [0x00056]
+in /home/gert/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:146
+--InvalidOperationException
+ at System.Xml.Serialization.XmlSerializer.CreateWriter
+(System.Xml.Serialization.XmlMapping typeMapping) [0x000c6]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:583
+ at System.Xml.Serialization.XmlSerializer.Serialize
+(System.Xml.XmlWriter writer, System.Object o,
+System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x00017]
+in /home/gert/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSeriali
+zer.cs:453
More information about the mono-bugs
mailing list