[Mono-bugs] [Bug 77195][Maj] Changed - BitArray.CopyTo throws ArgumentException when 0-length BitArray is copied

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Feb 17 21:16:56 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 zac at zacbowling.com.


--- shadow/77195	2006-01-14 11:26:43.000000000 -0500
+++ shadow/77195.tmp.11508	2006-02-17 21:16:56.000000000 -0500
@@ -1,12 +1,12 @@
 Bug#: 77195
 Product: Mono: Class Libraries
 Version: unspecified
 OS: All
 OS Details: 
-Status: NEW   
+Status: ASSIGNED   
 Severity: Unknown
 Priority: Major
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: monobugzilla at bakta.org               
@@ -142,6 +142,17 @@
 Mono's implementation behave like the docs. MS.NET doesn't
 throw an exception if BitArray.Count == 0 ...
 Should we mimic this bug??
+------- Additional Comments From zac at zacbowling.com  2006-02-17 21:16 -------
+I suggest we add a "!CLS" conditional compile arg...
+Something like this to the top of the bitarray function:
+#if !CLS
+//Replicate MS.NET bug
+if (array.Length == 0)
+  return;

More information about the mono-bugs mailing list