> This PR proposes to change the specification for some methods that take > `long` offsets so that they will throw an `IllegalArgumentException` rather > than an `IndexOutOfBoundsException` for negative values. > > The PR also proposes to fix a bug where the allocation size would overflow > and the specified exception was not thrown.
Per Minborg has updated the pull request incrementally with one additional commit since the last revision: Update after comments and discussion ------------- Changes: - all: https://git.openjdk.org/jdk/pull/17079/files - new: https://git.openjdk.org/jdk/pull/17079/files/27fc39fe..28a33930 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=17079&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17079&range=00-01 Stats: 136 lines in 10 files changed: 77 ins; 14 del; 45 mod Patch: https://git.openjdk.org/jdk/pull/17079.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/17079/head:pull/17079 PR: https://git.openjdk.org/jdk/pull/17079