mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8257511: JDK-8254082 brings regression to AbstractStringBuilder.insert(int dstOffset, CharSequence s, int start, int end)
Reviewed-by: alanb, rriggs, bpb
This commit is contained in:
parent
015e6e58c5
commit
00e79db89e
2 changed files with 25 additions and 9 deletions
|
@ -1717,7 +1717,7 @@ abstract class AbstractStringBuilder implements Appendable, CharSequence {
|
|||
if (getCoder() != str.coder()) {
|
||||
inflate();
|
||||
}
|
||||
str.getBytes(value, off, index, coder, end);
|
||||
str.getBytes(value, off, index, coder, end - off);
|
||||
}
|
||||
|
||||
private void putStringAt(int index, String str) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue