RFR: 8077242: Add default method CharSequence.getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)

Ivan Gerasimov ivan.gerasimov at oracle.com
Sat May 9 23:40:49 UTC 2015

Thanks Martin for quick reply!

On 10.05.2015 1:17, Martin Buchholz wrote:
>     Martin can you recollect if there were any concerns?
> It's absolutely true that I dropped the ball on this in jdk8, 
> discouraged by David's message here:
> http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-May/017174.html

Ah, yes. I see the problem.
I'm not going to suggest a general solution, but would it make sense to 
at least create an overloaded method AbstractStringBuilder.append(String 
str, int start, int end)?

Here's a draft webrev for this proposal:

BUGURL: https://bugs.openjdk.java.net/browse/JDK-8077242
WEBREV: http://cr.openjdk.java.net/~igerasim/8077242/01/webrev/

Sincerely yours,

More information about the core-libs-dev mailing list