[Mono-bugs] [Bug 29028][Maj] New - Explicit cast on null for overloaded method call fails

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
15 Aug 2002 21:03:59 -0000

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 gracenote@earthlink.net.


--- shadow/29028	Thu Aug 15 17:03:59 2002
+++ shadow/29028.tmp.12236	Thu Aug 15 17:03:59 2002
@@ -0,0 +1,46 @@
+Bug#: 29028
+Product: Mono/Runtime
+Version: unspecified
+OS Details: 
+Status: NEW   
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gracenote@earthlink.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: Explicit cast on null for overloaded method call fails
+Description of Problem:
+The runtime fails to use the explicit cast on a null argument 
+Steps to reproduce the problem:
+1. create two functions in a class with the prototype: 
+public void F(DataColumn col);
+public void F(DataColumn[] cols); 
+2. Call one of the functions with a null value using a cast:
+3. Step 2 will cause an invalid program exception. It shouldn't.  It 
+should appropriately use the cast to pick the function to call.
+Actual Results:
+Expected Results:
+Correct Method Called
+How often does this happen? 
+Every time.
+Additional Information:
+Run test case:  System.Data.ForeignKeyConstraintTest.TestCtorExceptions()
+To reproduce.