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: Fri, 04 Apr 2003 23:57:52 -0500

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

Changes by: Rhys Weatherley <address@hidden>
Date: Sat 04/05/2003 at 04:57 (GMT)

            What     | Removed                   | Added
---------------------------------------------------------------------------
          Resolution | None                      | Fixed
              Status | Open                      | Closed


------------------ Additional Follow-up Comments ----------------------------
Fix committed - 5 April 2003



=================== BUG #3048: FULL BUG SNAPSHOT ===================


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:  Fixed                    
Assigned to:  None                    Status:  Closed                       

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


Follow-up Comments
*******************

-------------------------------------------------------
Date: Sat 04/05/2003 at 04:57       By: rweather
Fix committed - 5 April 2003


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&amp;bug_id=3048&amp;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]