[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 16:10:01 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 danw at novell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76750
--- shadow/76750 2005-12-07 15:56:58.000000000 -0500
+++ shadow/76750.tmp.26248 2005-12-07 16:10:01.000000000 -0500
@@ -86,6 +86,20 @@
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
+
+------- Additional Comments From danw at novell.com 2005-12-07 16:10 -------
+when i run the sample i gave with mono-core 1.1.10, I get:
+
+Unhandled Exception: System.InvalidCastException: !IComparable
+in <0x00162> System.Collections.SortedList:.ctor (IDictionary d,
+IComparer comparer)
+in <0x00022> System.Collections.SortedList:Clone ()
+in <0x00076> SortedListTest:Main ()
+
+(ie, Clone calls the buggy ctor internally). Using Clone() on a
+SortedList with an IComparer but not IComparables was what I
+was trying to do when I originally filed the bug.
+
More information about the mono-bugs
mailing list