[Mono-bugs] [Bug 73900][Maj] New - Setting StringBuilder.Length puts the object in an inconsistent state
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 20 Mar 2005 10:59:05 -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 juraj@hotfeet.ch.
http://bugzilla.ximian.com/show_bug.cgi?id=73900
--- shadow/73900 2005-03-20 10:59:05.000000000 -0500
+++ shadow/73900.tmp.1355 2005-03-20 10:59:05.000000000 -0500
@@ -0,0 +1,26 @@
+Bug#: 73900
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: FC3
+Status: NEW
+Resolution:
+Severity:
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: juraj@hotfeet.ch
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Setting StringBuilder.Length puts the object in an inconsistent state
+
+Decrementing StringBuilder.Length for a StringBuilder containing "abcd"
+changes the length correctly, but ToString() still returns "abcd".
+
+Running the attached testcase illustrates this behaviour.
+
+Running the example contained in the following page also gives an output
+different from the one expected:
+http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemtextstringbuilderclasslengthtopic.asp