RFR: 8282429: StringBuilder/StringBuffer.toString() skip compressing for UTF16 strings [v2]
Xin Liu
xliu at openjdk.java.net
Tue Mar 8 20:32:07 UTC 2022
On Tue, 8 Mar 2022 17:33:58 GMT, Daniel Jeliński <djelinski at openjdk.org> wrote:
> As for a better name for `growOnly`, something like `mayBeLatin` would better convey the variable's purpose. What do you think?
There are tricky. I need to add test to cover them.
The problem comes from that this patch fails to copy over the attribute 'growOnly/maybeLatin1' from the other AbstractStringBuilder. I think we can fix this loophole. Other types such as String are well-formed. they don't suffer from this issue.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7671
More information about the core-libs-dev
mailing list