[Mono-bugs] [Bug 44608][Nor] New - ArrayList.ReadOnly wrapper doesn't reflect changes to the underlying collection

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 12 Jun 2003 07:58:28 -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 codeberg@vnet.hu.

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

--- shadow/44608	Thu Jun 12 07:58:28 2003
+++ shadow/44608.tmp.22459	Thu Jun 12 07:58:28 2003
@@ -0,0 +1,54 @@
+Bug#: 44608
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: codeberg@vnet.hu               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ArrayList.ReadOnly wrapper doesn't reflect changes to the underlying collection
+
+Description of Problem:
+
+ArrayList.ReadOnly() wrapper doesn't reflect changes to the underlying 
+collection, as described in .NET Framework SDK documentation.
+
+Steps to reproduce the problem:
+
+using System;
+using System.Collections;
+public class App {
+  public static void Main() {
+    ArrayList lst = new ArrayList();
+    lst.Add("A");
+    lst.Add("B");
+    ArrayList rol = ArrayList.ReadOnly(lst);
+    lst.Add("C");
+    foreach (string s in rol)
+      Console.Write("{0} ", s);
+  }
+}
+
+Actual Results:
+
+A B
+
+Expected Results:
+
+A B C
+
+How often does this happen? 
+
+always
+
+Additional Information:
+
+\mcs\mcs-0.23\class\corlib\System.Collections\ArrayList.cs