[Mono-bugs] [Bug 77079][Nor] New - InvokeMember fails to find correct overload

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 22 20:28:46 EST 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 bugzilla.ximian.com at chosenones.dyndns.org.


--- shadow/77079	2005-12-22 20:28:46.000000000 -0500
+++ shadow/77079.tmp.23039	2005-12-22 20:28:46.000000000 -0500
@@ -0,0 +1,43 @@
+Bug#: 77079
+Product: Mono: Runtime
+Version: 1.1
+OS Details: Fedora Core 4, latest updates
+Status: NEW   
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bugzilla.ximian.com at chosenones.dyndns.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: InvokeMember fails to find correct overload
+Description of Problem:
+Testcase follows. In certain cases, Mono fails to find the proper overload
+of a method when invoked via System.Type.InvokeMember.
+Steps to reproduce the problem:
+1. Create a class heirarchy three levels deep.
+class A {}
+class B: A {}
+class C: B {}
+2. Create a set of overloaded methods that take a parameter of the first
+(A) and second (B) level, but not the third.
+3. Invoke this method, via InvokeMember, with an instance of the third (C)
+Actual Results:
+A System.Reflection.AmbiguousMatchException is thrown.
+Expected Results:
+The overload for the second (B) class is called.
+How often does this happen? 

More information about the mono-bugs mailing list