Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAtsushi Eno <atsushieno@gmail.com>2009-05-11 21:12:26 +0400
committerAtsushi Eno <atsushieno@gmail.com>2009-05-11 21:12:26 +0400
commitce01d27dc27548090fa85981dc824290a39bc127 (patch)
treed3996d74a294dd13aa1b1734b3a09e64904b9b81 /mcs/class/System.XML/System.Xml.Schema
parent93e9f216e17c8601d71af7b6a42536d485d821e5 (diff)
2009-05-11 Atsushi Enomoto <atsushi@ximian.com>
* XmlSchemaComplexType.cs : do not forget to clear attributes before Compile(). Patch by Jonas Larsson. Fixed bug #501763. * XsdValidatingReaderTest.cs : test for bug #501763 by Jonas Larsson. svn path=/trunk/mcs/; revision=133905
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Schema')
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/ChangeLog5
-rw-r--r--mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs1
2 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/System.XML/System.Xml.Schema/ChangeLog b/mcs/class/System.XML/System.Xml.Schema/ChangeLog
index 80e949c2b8b..6928d201aa7 100644
--- a/mcs/class/System.XML/System.Xml.Schema/ChangeLog
+++ b/mcs/class/System.XML/System.Xml.Schema/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-11 Atsushi Enomoto <atsushi@ximian.com>
+
+ * XmlSchemaComplexType.cs : do not forget to clear attributes
+ before Compile(). Patch by Jonas Larsson. Fixed bug #501763.
+
2009-05-07 Jonas Larsson <jonas.larsson@manodo.se>
* XmlAtomicValue.cs : support more type conversion. fixed bug #501666.
diff --git a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs
index 4e74eb10e86..ae962f9fa11 100644
--- a/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs
+++ b/mcs/class/System.XML/System.Xml.Schema/XmlSchemaComplexType.cs
@@ -223,6 +223,7 @@ namespace System.Xml.Schema
return errorCount;
ValidatedIsAbstract = isAbstract;
+ attributeUses.Clear();
if (isRedefinedComponent) {
if (Annotation != null)