[Mono-bugs] [Bug 76750][Min] Changed - SortedList(IDictionary,
IComparer) ctor broken
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Dec 7 15:56:58 EST 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 sebastien at ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76750
--- shadow/76750 2005-12-07 11:20:14.000000000 -0500
+++ shadow/76750.tmp.26013 2005-12-07 15:56:58.000000000 -0500
@@ -1,17 +1,17 @@
Bug#: 76750
Product: Mono: Class Libraries
Version: 1.1
OS: unknown
OS Details:
-Status: REOPENED
+Status: NEW
Resolution:
Severity: Unknown
Priority: Minor
Component: CORLIB
-AssignedTo: mono-bugs at ximian.com
+AssignedTo: sebastien at ximian.com
ReportedBy: danw at novell.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
Cc:
Summary: SortedList(IDictionary, IComparer) ctor broken
@@ -62,6 +62,30 @@
public int Compare (object x, object y)
{
return 0;
}
}
+
+------- Additional Comments From sebastien at ximian.com 2005-12-07 15:56 -------
+doh :| keys...
+
+Thanks for the sample code but it seems that supplying, or not, an
+IComparer doesn't change the result (Mono always throws, while MS
+never throws).
+
+Also I never got an exception from the ctor itself (always when adding
+new elements). Did you get any from the
+SortedList(IDictionary,IComparer) ctor ?
+
+Finally I created some tests but I'm unable to get the documented
+InvalidCastException on MS 1.1/2.0. I get ArgumentException and
+InvalidOperationException.
+
+Did you ever get an InvalidCastException ?
+from the .ctor ?
+or is it just bad documentation ?
+
+I'll fix the issues I've found so far (bad InvalidCastException,
+throwing ArgumentException or InvalidOperationException.on additions).
+Please include any InvalidCastException test case that you may have.
+Thanks
More information about the mono-bugs
mailing list