[Mono-bugs] [Bug 77504][Maj] Changed - System.Array:BinarySearch
does not return the correct value
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Feb 8 12:50:48 EST 2006
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 julien.degroote at tremplin-utc.net.
http://bugzilla.ximian.com/show_bug.cgi?id=77504
--- shadow/77504 2006-02-08 11:57:34.000000000 -0500
+++ shadow/77504.tmp.15146 2006-02-08 12:50:48.000000000 -0500
@@ -102,6 +102,11 @@
Additional Information:
The cause of the exception is that BinarySearch returns -5 (the binary
complement of 4) but it should return -2 (binary complement of 1).
I tracked down the bug to System.Array:BinarySearch that apparently uses
the capacity of the internal array instead of the actual number of items to
do its search.
+
+------- Additional Comments From julien.degroote at tremplin-utc.net 2006-02-08 12:50 -------
+I kept investigating and tried without using generics (using
+ArrayList) and it works fine.
+It works using mcs as well as gmcs.
More information about the mono-bugs
mailing list