Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Joshua Cranmer Newsgroups: comp.lang.java.programmer Subject: Re: Substring changes (JDK 1.7) Date: Thu, 10 Jan 2013 10:48:42 -0600 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 10 Jan 2013 16:48:44 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="5a9707252ba5efb9bece56d1f4656a90"; logging-data="20248"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ff+5PWgcowcWB94Pmpt739f0Xa8lJr1s=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: Cancel-Lock: sha1:IIri+qkj3u2x0ETxZ/h6uAJqoaE= Xref: csiph.com comp.lang.java.programmer:21303 On 1/10/2013 10:15 AM, markspace wrote: > On 1/10/2013 5:38 AM, Jan Burse wrote: >> Dear All, >> >> > Recent versions of the JDK do not reuse the backing char[]. >> > The reason is that the offset and length fields have been >> > removed from String to save memory. >> >> Did this affect some of your code? >> >> Bye > > > Wrong on both counts. Where did you read this nonsense? > > suggests differently... -- Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth