FYC : JDK-7197183 : Improve copying behaviour of String.subSequence()
Alan.Bateman at oracle.com
Tue Feb 19 18:50:09 UTC 2013
On 19/02/2013 05:27, Mike Duigou wrote:
> From our current testing we found that applications currently using subSequence() failed if the equals(), hashCode() and toString() implementations did not exactly match String. Additionally we had to change String.equals() so that it recognizes can return "true" for matching instances of String.SubSequence.
I'm not sure about this either, especially with String.equals clearly
specifying that the argument must be a String.
The updates to AbstractStringBuilder append and insert seems unrelated,
I assume you did measurements. Just wondering about separating them out
as a separate patch?
More information about the core-libs-dev