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=78748

--- shadow/78748        2006-07-02 19:10:17.000000000 -0400
+++ shadow/78748.tmp.19438      2006-07-02 19:10:17.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 78748
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: [EMAIL PROTECTED]                            
+ReportedBy: [EMAIL PROTECTED]               
+QAContact: [EMAIL PROTECTED]
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: broken string comparison and/or sorted generic dictionaries
+
+The attached test cases (C5TreeDict.cs and SCGDict.cs) are very simple
+programs that perform several basic operations on a dictionary of strings
+(C5.TreeDictionary and SCG.SortedDictionary, respectively), and then
+attempt to look up one of the values mapped in the dictionary. The value
+should be in the dictionary (and iterating over the dictionary's elements
+will find it), but the dictionary lookup fails when it should succeed:
+
+$ gmcs SCGDict.cs -t:exe -out:SCGDict.exe
+$ mono SCGDict.exe
+
+Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The
+given key was not present in the dictionary.
+  at
+System.Collections.Generic.SortedDictionary`2[System.String,System.String].get_Item
+(System.String ) [0x00000]
+  at SCGDict.Main (System.String[] args) [0x00000]
+
+The underlying bug is unclear. The fact that it's exhibited by both
+C5.TreeDictionary and SCG.SortedDictionary suggests that it's a subtle
+issue with string comparison, but I haven't been able to pinpoint the
+specific problem.
+
+I see this behavior on both 1.1.15 and svn r62176, on both gentoo amd64 and
+x86.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to