[Mono-bugs] [Bug 79714][Maj] Changed - SortedList "Contains" sometimes fails with "string" keys
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Mon Feb 26 06:43:04 EST 2007
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 peter.dettman at iinet.net.au.
http://bugzilla.ximian.com/show_bug.cgi?id=79714
--- shadow/79714 2007-02-26 06:36:18.000000000 -0500
+++ shadow/79714.tmp.3856 2007-02-26 06:43:04.000000000 -0500
@@ -10,13 +10,12 @@
Component: System
AssignedTo: mono-bugs at ximian.com
ReportedBy: turchi at ntsc.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
-Cc:
Summary: SortedList "Contains" sometimes fails with "string" keys
Please fill in this template when reporting a bug, unless you know what you
are doing.
Description of Problem:
@@ -61,6 +60,25 @@
------- Additional Comments From peter.dettman at iinet.net.au 2007-02-26 06:36 -------
Created an attachment (id=18782)
Simplified test case
+
+------- Additional Comments From peter.dettman at iinet.net.au 2007-02-26 06:43 -------
+
+I was able to whittle the test case down to a 3-way string comparison
+that gives inconsistent results (see above attachment 18782).
+
+Of course, fixing that may not fix the whole issue, but it would be a
+start.
+
+Some notes:
+- The original test case (attachment 17887) works fine for me if the
+SortedList is constructed with
+CaseInsensitiveComparer.DefaultInvariant as the IComparer, but the
+problems are there if Comparer.DefaultInvariant is used - I guess case
+sensitive comparison is the underlying problem.
+- This bug may be related to <a
+href="http://bugzilla.ximian.com/show_bug.cgi?id=78748">Bug 78748</a>,
+which also was a collection problem caused by broken string comparisons.
+
More information about the mono-bugs
mailing list