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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75168 --- shadow/75168 2005-06-07 05:44:15.000000000 -0400 +++ shadow/75168.tmp.12852 2005-06-07 05:44:15.000000000 -0400 @@ -0,0 +1,72 @@ +Bug#: 75168 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Major +Component: CORLIB +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Dictionary class loses data + +Description of Problem: + +The dictionary in this example loses an entry. + +Steps to reproduce the problem: + +public class App { + public static void Main() { + IDictionary<int, int> d = new Dictionary<int, int>(); + + d[522407898] = 1; + d[70923434] = 2; + d[66049] = 3; + d[-1701951333] = 4; + d[73] = 5; + d[74] = 6; + d[67] = 7; + d[-455592055] = 8; + d[86524790] = 9; + d[-1246173417] = 10; + + ICollection<int> vs = d.Values; + + int count = 0; + foreach (int i in vs) { + count++; + System.Console.WriteLine("item number {0} is {1}", count, i); + } + + System.Console.WriteLine("counted {0} when it should be {1}", + count, vs.Count); + } +} + + +Actual Results: + +$ gmcs d.cs +$ mono d.exe +item number 1 is 6 +item number 2 is 3 +item number 3 is 1 +item number 4 is 2 +item number 5 is 7 +item number 6 is 8 +item number 7 is 9 +item number 8 is 4 +item number 9 is 10 +counted 9 when it should be 10 +$ + +Expected Results: + +Should have shown all the items and counted 10 out of 10. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
