[Mono-bugs] [Bug 442257] System.Array.Sort produces wrong results

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 10 07:22:08 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=442257

User fredrik.kling at swissqual.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=442257#c3





--- Comment #3 from Fredrik Kling <fredrik.kling at swissqual.com>  2008-11-10 05:22:07 MST ---
Fair enough, my sample is flawed.
However, am I to expect equal results between the frameworks?

Just for the record of issues:
------------------------------
MS throws an exception when doing:
"return ((ix > iy ? 1 : -1));"

But not when they are switched, like:
"return ((ix > iy ? -1 : 1));"

Which it should since it is essentially the same (and the same type of
comparison is executed on the objects), printing the call's and the arguments
(inside the IComparer function) shows that at least I would expect an exception
in the second case as well..

And yes, I know the comparer is flawed, stumbled upon the inequality (between
frameworks) by accident..


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list