[jdk17u-dev] RFR: 8314236: Overflow in Collections.rotate

Daniel Hu duke at openjdk.org
Thu Apr 24 23:32:28 UTC 2025


Clean backport. Fixes bug with Collections.rotate creating overflow on arrays bigger than 2^30 elements. Passes new test on linux x64.

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

Commit messages:
 - Backport 3828dc913a3ea28d622b69bd07f26949128eb5f7

Changes: https://git.openjdk.org/jdk17u-dev/pull/3530/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=3530&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8314236
  Stats: 89 lines in 2 files changed: 85 ins; 1 del; 3 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/3530.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/3530/head:pull/3530

PR: https://git.openjdk.org/jdk17u-dev/pull/3530


More information about the jdk-updates-dev mailing list