[Mono-bugs] [Bug 45046][Wis] Changed - Array.BinarySearch can't search for nulls

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 18 Jun 2003 03:41:46 -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 tum@veridicus.com.

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

--- shadow/45046	Wed Jun 18 03:30:29 2003
+++ shadow/45046.tmp.11906	Wed Jun 18 03:41:45 2003
@@ -1,14 +1,14 @@
 Bug#: 45046
 Product: Mono/Class Libraries
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Wishlist
 Component: CORLIB
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: tum@veridicus.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -34,6 +34,24 @@
 
 3
 
 How often does this happen? 
 
 All the time.
+
+------- Additional Comments From tum@veridicus.com  2003-06-18 03:41 -------
+Correction:
+
+Test code should be:
+
+object[] array = new object[] { null, 1,2,3 };
+
+Console.WriteLine(Array.BinarySearch(null));
+
+Output:
+
+ArgumentException
+
+Expected Output:
+
+0
+