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

Radek Čáp duke at openjdk.org
Wed Nov 13 20:52:39 UTC 2024


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.

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

Commit messages:
 - Backport cd61f97c2de94d19c0101c51bde143001078c89f

Changes: https://git.openjdk.org/jdk11u-dev/pull/2961/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=2961&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8337066
  Stats: 58 lines in 2 files changed: 58 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk11u-dev/pull/2961.diff
  Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/2961/head:pull/2961

PR: https://git.openjdk.org/jdk11u-dev/pull/2961


More information about the jdk-updates-dev mailing list