[Mono-bugs] [Bug 61919][Nor] Changed - Queue (ICollection) ctor incorrect

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 1 Oct 2004 17:13:13 -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 sr@sander.yi.org.

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

--- shadow/61919	2004-10-01 17:07:30.000000000 -0400
+++ shadow/61919.tmp.30392	2004-10-01 17:13:13.000000000 -0400
@@ -94,6 +94,17 @@
 
 
 ------- Additional Comments From sr@sander.yi.org  2004-10-01 17:07 -------
 Created an attachment (id=11831)
 proposed patch #2
 
+
+------- Additional Comments From sr@sander.yi.org  2004-10-01 17:13 -------
+The first constructor results in a queue with internal array size 0.
+This causes the grow method to fail (0 * growFactor still is 0)
+
+The secondary patch is better imho. Both solutions work, but patch #2
+documents itself that the internal array size of 0 is the only case
+where this goes wrong.
+
+FYI the System.Collections.Generic.Queue is unaffected, because that
+is implemented using a LinkedList, instead of an array