[Mono-bugs] [Bug 76083][Nor] New - Adding a control to a TabPage using reflection gives AmbiguousMatchException exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 13 08:40:54 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 jo at lumumba.luc.ac.be.

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

--- shadow/76083	2005-09-13 08:40:54.000000000 -0400
+++ shadow/76083.tmp.8593	2005-09-13 08:40:54.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 76083
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Ubuntu Linux Breezy Badger 5.10
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: jo at lumumba.luc.ac.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Adding a control to a TabPage using reflection gives AmbiguousMatchException exception
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Resolving the "Add" method on a tabpage's Controls property gives an
+AmbiguousMatchException. As a parameter the Type of a
+System.Windows.Forms.Label was given. When given the
+System.Windows.Forms.Control type, it does work. 
+
+Steps to reproduce the problem:
+1. Write a piece of code that resolves the method using reflection
+2. Run the code
+
+Actual Results:
+
+Unhandled Exception: System.Reflection.AmbiguousMatchException: Ambiguous
+matching in method resolution
+
+Expected Results:
+
+Run without errors.
+
+How often does this happen? 
+
+Always.
+
+Additional Information:
+
+I will upload a test case in a few minutes. I tested this testcase on
+Microsoft's .NET, and there it does work.


More information about the mono-bugs mailing list