[Mono-bugs] [Bug 49023][Nor] Changed - invalid IL generated for System.Xml.XmlSchemaImporter::ImportExtensionTypes

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 7 Oct 2003 02:11:59 -0400 (EDT)


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 miguel@ximian.com.

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

--- shadow/49023	2003-09-29 09:58:24.000000000 -0400
+++ shadow/49023.tmp.4602	2003-10-07 02:11:59.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 49023
 Product: Mono/MCS
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: vargaz@freemail.hu               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -21,6 +21,24 @@
 
           IL_0041: callvirt instance object class
 [corlib]System.Collections.IEnumerator::get_Current()
           IL_0046: stloc.1
 
 The generated code is missing a cast from object to to XmlSchemaObject.
+
+------- Additional Comments From miguel@ximian.com  2003-10-07 02:11 -------
+The compiler determines that the result type is compatible:
+
+          IL_0027:  callvirt instance class
+System.Xml.Schema.XmlSchemaObjectCollection class
+System.Xml.Schema.XmlSchema::get_Items()
+          IL_002c:  callvirt instance class
+System.Xml.Schema.XmlSchemaObjectEnumerator class
+System.Xml.Schema.XmlSchemaObjectCollection::GetEnumerator()
+
+So what happens is that the GetEnumerator in XmlSchemaObjectCollection
+will return a strongly typed enumerator that returns a
+System.Xml.Schema.XmlSchemaObject.  
+
+Maybe the compiler bug (need to check that tomorrow) is that it calls
+the generic IEnumerator.Current method, and it probably could call the
+XmlSchemaObjectEnumerator.Current method.