[Mono-bugs] [Bug 72244][Nor] Changed - new StringBuilder(4, 7).Append ("foo").Append ("bar");
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 7 Feb 2005 13:35:46 -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 bmaurer@users.sf.net.
http://bugzilla.ximian.com/show_bug.cgi?id=72244
--- shadow/72244 2005-02-07 13:18:19.000000000 -0500
+++ shadow/72244.tmp.19431 2005-02-07 13:35:46.000000000 -0500
@@ -78,6 +78,14 @@
The issue is that we try to resize to capacity 8 on the second append
(4*2 == 8). This is above the max capcity. However, we can stil resize
to 6 or 7, and not be above, and still fit the string.
------- Additional Comments From miguel@ximian.com 2005-02-07 13:18 -------
Ben, is this a regression with your new StringBuilder code?
+
+------- Additional Comments From bmaurer@users.sf.net 2005-02-07 13:35 -------
+No. The test case:
+
+new StringBuilder(4, 7).Append ("foo").Append ("bar");
+
+will fail both before and after. This is the root cause, and was not
+triggered by my patch.