[Mono-bugs] [Bug 39724][Nor] New - wrong ArrayList.GetRange() implementation

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Fri, 14 Mar 2003 07:22:21 -0500 (EST)


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 gmit@inet.hr.

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

--- shadow/39724	Fri Mar 14 07:22:21 2003
+++ shadow/39724.tmp.30285	Fri Mar 14 07:22:21 2003
@@ -0,0 +1,23 @@
+Bug#: 39724
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gmit@inet.hr               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: wrong ArrayList.GetRange() implementation
+
+I believe you have a bug in ArrayList.GetRange function. In your code, 
+copy of the ArrayList is made, while in MSDN is stated that GetRange 
+should return a view (wrapper) to the original ArrayList which means it's 
+fast and modifications to the view also change it's parent (which is not 
+the case with your's implementation).