[Mono-bugs] [Bug 79542][Cos] New - System.Array.Reset throws wrong exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 1 05:49:53 EDT 2006


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 marek.sieradzki at gmail.com.

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

--- shadow/79542	2006-10-01 05:49:53.000000000 -0400
+++ shadow/79542.tmp.20350	2006-10-01 05:49:53.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 79542
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: marek.sieradzki at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Array.Reset throws wrong exception
+
+Description of Problem:
+Wrong exception thrown by System.Array Reset (211 line)
+
+Steps to reproduce the problem:
+1. compile and execute code containing:
+
+int[] array = new int [] {1,2,3};
+IEnumerator <int> enum = ((IEnumerable <int>)array).GetEnumerator ()
+enum.Reset ();
+
+Actual Results:
+NotImplementedException
+
+Expected Results:
+NotSupportedException
+
+
+How often does this happen? 
+Always
+
+Additional Information:
+http://msdn2.microsoft.com/en-us/library/78dfe2yb.aspx
+Reset doesn't need to be implemented but NotSupportedException would
+confuse less.


More information about the mono-bugs mailing list