dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [Bug #3048] Hashtable and StringDictionary incorrectly


From: nobody
Subject: [Pnet-developers] [Bug #3048] Hashtable and StringDictionary incorrectly return a static copy of the values
Date: Wed, 02 Apr 2003 02:48:24 -0500

=================== BUG #3048: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3048&group_id=353

Submitted by: mathpup                 Project: DotGNU Portable.NET          
Submitted on: Wed 04/02/2003 at 07:48
Category:  None                       Severity:  5 - Major                  
Bug Group:  None                      Resolution:  None                     
Assigned to:  None                    Status:  Open                         

Summary:  Hashtable and StringDictionary incorrectly return a static copy of 
the values

Original Submission:  According to the ECMA docs, the Hashtable.Values property 
returns an ICollection that "is a reference to the current instance, not a 
static copy. Therefore, changes to the current instance continue to be 
reflected in the System.Collections.ICollection."

System.Collections.Specialized.StringDictionary has the same bug.

I'm attaching a test case. On Rotor and Mono, the output is

Banana
Apple

Blueberry
Apple

On Pnet, the output is

Banana
Apple

Banana
Apple




No Followups Have Been Posted


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: Wed 04/02/2003 at 07:48  Name: dict.cs  Size: 0KB   By: mathpup
Test case
http://savannah.gnu.org/bugs/download.php?group_id=353&bug_id=3048&bug_file_id=380


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=3048&group_id=353


reply via email to

[Prev in Thread] Current Thread [Next in Thread]