[jdk11u-dev] RFR: 8337066: Repeated call of StringBuffer.reverse with double byte string returns wrong result [v3]

Radek Čáp duke at openjdk.org
Wed Nov 20 08:26:35 UTC 2024


On Tue, 19 Nov 2024 12:26:05 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.
>
> Radek Čáp has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Fixed indentation.

- backport is adding test and fixes behavior caused by https://bugs.openjdk.org/browse/JDK-8242115
- https://bugs.openjdk.org/browse/JDK-8242115 isn't backported, currently, it isn't worth it to be backported and probably won't be backported
- the test is green on patched code, and on unpatched code
- the conclusion is not to backport this.

-------------

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2961#issuecomment-2487862487


More information about the jdk-updates-dev mailing list