[Mono-bugs] [Bug 75515][Nor] Changed - Accessing inherited static
fields via reflection with the BindingFlags.FlattenHierarchy
flag yields wrong value
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Oct 17 18:37:17 EDT 2005
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 robertj at gmx.net.
http://bugzilla.ximian.com/show_bug.cgi?id=75515
--- shadow/75515 2005-07-13 12:52:15.000000000 -0400
+++ shadow/75515.tmp.23321 2005-10-17 18:37:17.000000000 -0400
@@ -10,13 +10,12 @@
Component: CORLIB
AssignedTo: lupus at ximian.com
ReportedBy: rodrigobamboo at gmail.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
-Cc:
Summary: Accessing inherited static fields via reflection with the BindingFlags.FlattenHierarchy flag yields wrong value
using System;
using System.Reflection;
class X
@@ -73,6 +72,29 @@
if (!condition)
{
throw new ApplicationException();
}
}
}
+
+------- Additional Comments From robertj at gmx.net 2005-10-17 18:37 -------
+ at Paolo:
+
+This is a runtime bug. I'll attach a patch file as well.
+
+Rob
+
+
+Index: metadata/icall.c
+===================================================================
+--- metadata/icall.c (revision 51732)
++++ metadata/icall.c (working copy)
+@@ -2866,7 +2866,7 @@
+ }
+ g_free (utf8_name);
+
+- return mono_field_get_object (domain, startklass, field);
++ return mono_field_get_object (domain, klass, field);
+ }
+ if (!(bflags & BFLAGS_DeclaredOnly) && (klass = klass->parent))
+ goto handle_parent;
+
More information about the mono-bugs
mailing list