> Change `MethodHandles.byteArrayViewVarHandle` to throw > `ArrayIndexOutOfBoundsException` rather than the more generic > `IndexArrayOutOfBoundsException`. This feels more natural, and reduces the > risk for subtle behavioral mismatch when migrating code from arrays/Unsafe to > VHs. > > CSR: [JDK-8259912](https://bugs.openjdk.java.net/browse/JDK-8259912)
Claes Redestad has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision: - Update VarHandles tests to check for AIOOBE specifically when appropriate - Copyrights - Merge branch 'master' into vh_aioobe - byteArrayViewVarHandle should throw ArrayIndexOutOfBoundsException ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/2124/files - new: https://git.openjdk.java.net/jdk/pull/2124/files/42c9460c..9259ee3a Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2124&range=01 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2124&range=00-01 Stats: 4494 lines in 166 files changed: 725 ins; 2890 del; 879 mod Patch: https://git.openjdk.java.net/jdk/pull/2124.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/2124/head:pull/2124 PR: https://git.openjdk.java.net/jdk/pull/2124