The new repeat methods were not clearing the toStringCache. -------------
Commit messages: - Backport df22fb322e6c4c9931a770bd0abf4c43b83c4e4a Changes: https://git.openjdk.org/jdk22/pull/87/files Webrev: https://webrevs.openjdk.org/?repo=jdk22&pr=87&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8322512 Stats: 16 lines in 2 files changed: 15 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk22/pull/87.diff Fetch: git fetch https://git.openjdk.org/jdk22.git pull/87/head:pull/87 PR: https://git.openjdk.org/jdk22/pull/87