[Mono-bugs] [Bug 75168][Maj] Changed - Dictionary class loses data

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jun 7 05:56:44 EDT 2005


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 dsilva at ccs.neu.edu.

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

--- shadow/75168	2005-06-07 05:44:15.000000000 -0400
+++ shadow/75168.tmp.12960	2005-06-07 05:56:44.000000000 -0400
@@ -1,14 +1,14 @@
 Bug#: 75168
 Product: Mono: Class Libraries
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: CORLIB
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: dsilva at ccs.neu.edu               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
@@ -67,6 +67,30 @@
 counted 9 when it should be 10
 $
 
 Expected Results:
 
 Should have shown all the items and counted 10 out of 10.
+
+------- Additional Comments From dsilva at ccs.neu.edu  2005-06-07 05:56 -------
+If I add this bit of code at the end:
+
+int keycount = 0;
+foreach (int key in d.Keys) {
+  keycount++;
+  System.Console.WriteLine("key number {0} is {1} and d[{1}] = {2}",
+                           keycount, key, d[key]);
+}
+
+then the program also outputs this:
+
+key number 1 is 74 and d[74] = 6
+key number 2 is 66049 and d[66049] = 3
+key number 3 is 522407898 and d[522407898] = 1
+key number 4 is 70923434 and d[70923434] = 2
+key number 5 is 67 and d[67] = 7
+key number 6 is -455592055 and d[-455592055] = 8
+key number 7 is 67 and d[67] = 7
+key number 8 is -455592055 and d[-455592055] = 8
+key number 9 is 67 and d[67] = 7
+key number 10 is -455592055 and d[-455592055] = 8
+


More information about the mono-bugs mailing list