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 [EMAIL PROTECTED]

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

--- shadow/75091        2005-05-29 17:33:00.000000000 -0400
+++ shadow/75091.tmp.5785       2005-05-30 05:11:41.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 75091
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Normal
 Component: Mono.Cecil
 AssignedTo: [EMAIL PROTECTED]                            
 ReportedBy: [EMAIL PROTECTED]               
 QAContact: [EMAIL PROTECTED]
 TargetMilestone: ---
@@ -304,6 +304,31 @@
        IL_0000:  ldarg.0 
        IL_0001:  call instance void class [Foo]Foo::.ctor()
        IL_0006:  ret 
     } // end of method Bar::instance default void .ctor () 
 
   } // end of class Bar
+
+------- Additional Comments From [EMAIL PROTECTED]  2005-05-30 05:11 -------
+Found the problem.  Here's the bugfix.
+                       
+cecil$ svn diff
+Index: lib/Mono.Cecil.Implem/ReflectionReader.cs
+===================================================================
+--- lib/Mono.Cecil.Implem/ReflectionReader.cs   (revision 45181)
++++ lib/Mono.Cecil.Implem/ReflectionReader.cs   (working copy)
+@@ -229,9 +229,12 @@
+             ReadTypeSpecs ();
+
+             // set base types
+-            for (int i = 1; i < typesTable.Rows.Count; i++) {
++               // BUGFIX 75091: changed the loop to start at 0,
++               //               and changed m_typeDefs[i-1] to
+m_typeDefs[i]
++               //               -- daniel
++            for (int i = 0; i < typesTable.Rows.Count; i++) {
+                 TypeDefRow type = typesTable [i];
+-                TypeDefinition child = m_typeDefs [i - 1];
++                TypeDefinition child = m_typeDefs [i];
+                 child.BaseType = GetTypeDefOrRef (type.Extends);
+             }
+
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to