[jdk11u-dev] RFR: 8337066: Repeated call of StringBuffer.reverse with double byte string returns wrong result
Severin Gehwolf
sgehwolf at openjdk.org
Mon Nov 18 17:22:22 UTC 2024
On Fri, 8 Nov 2024 12:44:55 GMT, Radek Čáp <duke at openjdk.org> wrote:
> Backport for https://bugs.openjdk.org/browse/JDK-8337066
>
> When calling StringBuffer/StringBuilder.reverse with 2byte string repeatedly, the API returns wrong result.
>
> This is a clean backport.
> @vieiro just pointed me that I need to backport this first - https://bugs.openjdk.org/browse/JDK-8343687
@RadekCap I don't think that will work. What should work is adding [JDK-8343687](https://bugs.openjdk.org/browse/JDK-8343687) to this backport. I.e. cherry-pick the patch and use `/issue add JDK-8343687` on this PR.
-------------
PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2961#issuecomment-2483615503
More information about the jdk-updates-dev
mailing list