[Mono-bugs] [Bug 58844][Nor] New - InvokeMember with 'InvokeMethod | GetField' fails to find field

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 22 May 2004 04:23:06 -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 timsuth@ihug.co.nz.


--- shadow/58844	2004-05-22 04:23:06.000000000 -0400
+++ shadow/58844.tmp.9478	2004-05-22 04:23:06.000000000 -0400
@@ -0,0 +1,30 @@
+Bug#: 58844
+Product: Mono: Class Libraries
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: timsuth@ihug.co.nz               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: InvokeMember with 'InvokeMethod | GetField' fails to find field
+When calling System.Type#InvokeMember (mcs/class/corlib/System/MonoType.cs)
+with BindingFlags like
+ InvokeMethod | GetField
+if there is no method with the name you're asking for, it will fail with
+MissingMethodException even if a field exists with that name.
+The same problem applies with GetProperty.
+I will attach some code demonstrating the problem in a moment.
+Tested on Mono