[Mono-bugs] [Bug 47789][Nor] New - Stack.Clone sets wrong Count
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 21 Aug 2003 10:08:27 -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 joergr@voelcker.com.
http://bugzilla.ximian.com/show_bug.cgi?id=47789
--- shadow/47789 2003-08-21 10:08:27.000000000 -0400
+++ shadow/47789.tmp.7121 2003-08-21 10:08:27.000000000 -0400
@@ -0,0 +1,45 @@
+Bug#: 47789
+Product: Mono/Class Libraries
+Version: unspecified
+OS: Suse 8.2
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: JoergR@voelcker.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Stack.Clone sets wrong Count
+
+Description of Problem:
+When you clone a Stack object the Count property equals Capacity and not
+element count.
+
+Steps to reproduce the problem:
+1. Compile the attached sample
+2. Run it
+
+Actual Results:
+Elements in stack1: 0
+ Add 2 Elements to stack1
+Elements in stack1: 2
+ Clone stack1 to stack2
+Elements in stack2: 16
+
+Expected Results:
+Elements in stack1: 0
+ Add 2 Elements to stack1
+Elements in stack1: 2
+ Clone stack1 to stack2
+Elements in stack2: 2
+
+
+How often does this happen?
+Always
+
+Additional Information: