[Mono-bugs] [Bug 45042][Wis] New - Array.Sort throws incorrect exception

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Wed, 18 Jun 2003 01:27:34 -0400 (EDT)


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 tum@veridicus.com.

http://bugzilla.ximian.com/show_bug.cgi?id=45042

--- shadow/45042	Wed Jun 18 01:27:34 2003
+++ shadow/45042.tmp.1455	Wed Jun 18 01:27:34 2003
@@ -0,0 +1,41 @@
+Bug#: 45042
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tum@veridicus.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Array.Sort throws incorrect exception
+
+Description of Problem:
+
+Array.Sort should throw InvalidOperationExceptions if the comparator 
+throws an exception.
+
+Steps to reproduce the problem:
+
+object[] array = new object[] {3, 2, (short)1};
+
+Array.Sort(array);
+
+
+Actual Results:
+
+ArgumentException
+
+Expected Results:
+
+InvalidOperationException
+
+How often does this happen? 
+
+All the time.