[Mono-bugs] [Bug 21784] New - Indexer inheritance in ref'd library classes broken

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
11 Mar 2002 23:02:41 -0000


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 mkestner@speakeasy.net.

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

--- shadow/21784	Mon Mar 11 18:02:41 2002
+++ shadow/21784.tmp.13339	Mon Mar 11 18:02:41 2002
@@ -0,0 +1,45 @@
+Bug#: 21784
+Product: Mono/Runtime
+Version: unspecified
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mkestner@speakeasy.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Indexer inheritance in ref'd library classes broken
+
+mono mcs and gtk-sharp from CVS 16:00 3/11/02
+
+in gtk-sharp/generator:
+
+mono mcs.exe --unsafe -o codegen.exe -r System.Xml *.cs
+
+results in:
+
+./StructBase.cs(51) error CS21: Type `System.Xml.XmlElement' does not have
+any indexers defined
+./StructBase.cs(51) error CS154: indexer can not be used in this context,
+because it lacks a `get' accessor
+./StructBase.cs(137) error CS21: Type `System.Xml.XmlElement' does not have
+any indexers defined
+./StructBase.cs(137) error CS154: indexer can not be used in this context,
+because it lacks a `get' accessor
+./StructBase.cs(156) error CS21: Type `System.Xml.XmlElement' does not have
+any indexers defined
+./StructBase.cs(156) error CS154: indexer can not be used in this context,
+because it lacks a `get' accessor
+
+The indexer is defined on the base class XmlNode.
+
+I created a small test program to recreate the problem, but the directly
+compiled classes did not throw the error, so this is apparently a problem
+with the loading/inspection of classes from libraries.  The bug exists in
+mint and mono, but does not occur when running mcs on win32.