bugDotGNU Portable.NET - Bugs: bug #3048, Hashtable and StringDictionary...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #3048: Hashtable and StringDictionary incorrectly return a static copy of the values

Submitted by:  Marcus Urban <mathpup>
Submitted on:  Wed 02 Apr 2003 07:48:23 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Sat 05 Apr 2003 04:57:52 AM UTC, comment #1:

Fix committed - 5 April 2003

Rhys Weatherley <rweather>
Project Administrator
Wed 02 Apr 2003 07:48:23 AM UTC, 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

Marcus Urban <mathpup>

 

Attached Files
file #377:  dict.cs added by mathpup (468B - text/x-csharp - Test case)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 05 Apr 2003 04:57:52 AM UTCrweatherStatusNone=>(Error - Not Found)
  Open/ClosedOpen=>(Error - Not Found)

Back to the top


Powered by Savane 3.1-cleanup1