But this just shows that the static overload is wrong: There is nothing in the Java spec that shows how a string is built internally.
----- Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -----Original Message----- > From: dawid.we...@gmail.com [mailto:dawid.we...@gmail.com] On Behalf > Of Dawid Weiss > Sent: Monday, February 24, 2014 10:11 PM > To: dev@lucene.apache.org > Subject: Re: [JENKINS] Lucene-4x-Linux-Java6-64-test-only - Build # 13556 - > Failure! > > > Especially if it is a substring of another string: in that case the array > > is larger > than string.length(). > > This was actually changed recently (and in j8) so no backing char[] array > sharing is present anymore -- substring is copy-based. > > Dawid > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional > commands, e-mail: dev-h...@lucene.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org