diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2015-01-29 11:39:51 +0300 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2015-02-20 22:19:06 +0300 |
commit | 74e70ff985876617e0c2c89203fea7cbc80d0dce (patch) | |
tree | 6d5802a59c5dc50d04b8fd5c1f8ccf1b4235d623 /mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs | |
parent | d41451bcbfadd10b72711e016170abb3d7f3e6bb (diff) |
[Sys.Xml] don't use XmlSchemaElement.ElementType anymore. MS doesn't use it.
XML Schema compilation is done in referencesource.
XmlSchemaImporter is based on mono code. Hence this glitch happened.
The following regression is fixed:
1) MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes : System.InvalidOperationException : 'Root' is missing.
at System.Xml.Serialization.XmlSchemaImporter.ImportTypeMapping (System.Xml.XmlQualifiedName name) [0x0005a] in /svn/mono/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs:453
at MonoTests.System.Xml.Serialization.XmlSchemaImporterTests.DefaultTypeTopLevelElementImportsAllComplexTypes () [0x00039] in /svn/mono/mcs/class/System.XML/Test/System.Xml.Serialization/XmlSchemaImporterTests.cs:1104
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00054] in /svn/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:230
Diffstat (limited to 'mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs')
-rw-r--r-- | mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs b/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs index 892c5c9efee..5f1d98cac4b 100644 --- a/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs +++ b/mcs/class/System.XML/System.Xml.Serialization/XmlSchemaImporter.cs @@ -504,7 +504,7 @@ namespace System.Xml.Serialization stype = elem.SchemaType; qname = elem.QualifiedName; } - else if (elem.ElementType == XmlSchemaComplexType.AnyType) + else if (elem.ElementSchemaType == XmlSchemaComplexType.AnyType) { qname = anyType; return true; |