[Mono-bugs] [Bug 80930][Wis] New - [System.Collections.Generic.List<T>] List<T>.InsertRange(index, collection) fails when collection is this

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Feb 22 03:07:09 EST 2007


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 dmitchell at logos.com.

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

--- shadow/80930	2007-02-22 03:07:09.000000000 -0500
+++ shadow/80930.tmp.860	2007-02-22 03:07:09.000000000 -0500
@@ -0,0 +1,46 @@
+Bug#: 80930
+Product: Mono: Class Libraries
+Version: 1.0
+OS: other
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: dmitchell at logos.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: [System.Collections.Generic.List<T>] List<T>.InsertRange(index, collection) fails when collection is this
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+Code snippet:
+
+List<int> foo = new List<int>();
+...
+foo.InsertRange(0, foo);
+
+End snippet
+
+The above code will throw an ArgumentException for length at Array.Copy if foo.Count is greater 
+than 0.
+
+Steps to reproduce the problem:
+1. use the above code
+2. 
+3. 
+
+Actual Results:
+Exception
+
+Expected Results:
+No Exception
+
+How often does this happen? 
+Always
+
+Additional Information:


More information about the mono-bugs mailing list