[Mono-bugs] [Bug 622042] Regression: Array.Sort no longer sorts properly.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 13 18:46:04 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=622042

http://bugzilla.novell.com/show_bug.cgi?id=622042#c1


Miguel de Icaza <miguel at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Miguel de Icaza <miguel at novell.com> 2010-07-13 22:46:03 UTC ---
This turns out to be an implementation specific bug, and it is easy to also
make .NET break, but the other way around.

This bug was originally exposed by the ms_clr_suite that used the above
pattern.   The comparer is buggy because it should not be testing the boxed
values in "if (x == y) return 0" it should be testing the unboxed values.

Changing the order of the keys of the c1 array will break in .NET but work in
Mono with this buggy Comparer implementation.

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


More information about the mono-bugs mailing list