FYC : JDK-7197183 : Improve copying behaviour of String.subSequence() (original) (raw)
Alan Bateman Alan.Bateman at oracle.com
Tue Feb 19 18:50:09 UTC 2013
- Previous message: FYC : JDK-7197183 : Improve copying behaviour of String.subSequence()
- Next message: FYC : JDK-7197183 : Improve copying behaviour of String.subSequence()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 19/02/2013 05:27, Mike Duigou wrote:
:
http://cr.openjdk.java.net/~mduigou/JDK-7197183/0/ 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?
-Alan
- Previous message: FYC : JDK-7197183 : Improve copying behaviour of String.subSequence()
- Next message: FYC : JDK-7197183 : Improve copying behaviour of String.subSequence()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]