Procházet zdrojové kódy

* XmlReflectionImporter.cs: Don't reset the internal tables at every
ImportMembersMapping call. This fixes bug #58112. The problem is that
it imported two different arrays (only different in the array item
namespace) with the same name. Not sure what was this Reset needed for,
everyting seems to work without it.

svn path=/trunk/mcs/; revision=26893

Lluis Sanchez před 21 roky
rodič
revize
b37ee973a1

+ 8 - 0
mcs/class/System.XML/System.Xml.Serialization/ChangeLog

@@ -1,3 +1,11 @@
+2004-05-07  Lluis Sanchez Gual <[email protected]>
+
+	* XmlReflectionImporter.cs: Don't reset the internal tables at every
+	  ImportMembersMapping call. This fixes bug #58112. The problem is that
+	  it imported two different arrays (only different in the array item
+	  namespace) with the same name. Not sure what was this Reset needed for,
+	  everyting seems to work without it.
+
 2004-05-05  Lluis Sanchez Gual <[email protected]>
 
 	* SerializationCodeGenerator.cs, XmlSerializationReaderInterpreter.cs: 

+ 2 - 1
mcs/class/System.XML/System.Xml.Serialization/XmlReflectionImporter.cs

@@ -83,7 +83,8 @@ namespace System.Xml.Serialization {
 			XmlReflectionMember [] members,
 			bool hasWrapperElement)
 		{
-			Reset ();
+//			Reset ();	Disabled. See ChangeLog
+
 			XmlMemberMapping[] mapping = new XmlMemberMapping[members.Length];
 			for (int n=0; n<members.Length; n++)
 			{