-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 17, 21, 22
-
b16
-
Verified
An integer overflow/wraparound in Collections.rotate() can lead to IndexOutOfBoundsException. Reproducer:
// need something like -Xmx16g
Collections.rotate(new ArrayList<>(Collections.nCopies((1<<30)+1, "")), 1<<30)
See the PR for more details:
https://github.com/openjdk/jdk/pull/15270
// need something like -Xmx16g
Collections.rotate(new ArrayList<>(Collections.nCopies((1<<30)+1, "")), 1<<30)
See the PR for more details:
https://github.com/openjdk/jdk/pull/15270