2008-06-01 Juraj Skripsky <js@hotfeet.ch>
authorJuraj Skripsky <js@hotfeet.ch>
Sun, 1 Jun 2008 17:57:48 +0000 (17:57 -0000)
committerJuraj Skripsky <js@hotfeet.ch>
Sun, 1 Jun 2008 17:57:48 +0000 (17:57 -0000)
commit169c1ff0f6e24d97a757d67ac8971a386116c846
tree5e9cebb957249d487f5bff9c955defa9ef28a1cb
parente1bc7598075a44573438a287272c8d85d55e8186
2008-06-01  Juraj Skripsky  <js@hotfeet.ch>

* StringBuilder.cs (ToString): Use String.SubstringUnchecked instead
of String.Substring, as the former is guaranteed to create a new
string object. Fixes bug #395904.

* String.cs (Substring): Blocking bug #395904 has been fixed,
re-enable optimization.

* StringTest.cs (Substring2): Blocking bug #395904 has been fixed,
re-enable test.

svn path=/trunk/mcs/; revision=104629
mcs/class/corlib/System.Text/ChangeLog
mcs/class/corlib/System.Text/StringBuilder.cs
mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/String.cs
mcs/class/corlib/Test/System/ChangeLog
mcs/class/corlib/Test/System/StringTest.cs