[Mono-bugs] [Bug 50755][Min] New - Minor bugs in System.Collections.Stack

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 9 Nov 2003 14:32:59 -0500 (EST)


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 barce@frlp.utn.edu.ar.

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

--- shadow/50755	2003-11-09 14:32:59.000000000 -0500
+++ shadow/50755.tmp.30402	2003-11-09 14:32:59.000000000 -0500
@@ -0,0 +1,32 @@
+Bug#: 50755
+Product: Mono/Class Libraries
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: barce@frlp.utn.edu.ar               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Minor bugs in System.Collections.Stack
+
+Reviewing the code I found these minor bugs in System.Collections.Stack
+This should be fixed to mantain compatibility with MS .NET
+I'm attaching more tests and a patch for these bugs.
+
+- ctor: public Stack (ICollection col)
+	- Parameter name should be "col", not "collection".
+	- ArgumentNullException.ParamName should be "col".
+
+- ctor: public Stack (int c)
+	- Parameter name should be "initialCapacity", not "c".
+	- ArgumentOutOfRangeException.ParamName should be "initialCapacity".
+	
+- method: public virtual void CopyTo (Array array, int index)	
+	- ArgumentNullException.ParamName should be "array".