RFR: 8335638: Calling VarHandle.{access-mode} methods reflectively throws wrong exception [v2]

Hannes Greule hgreule at openjdk.org
Thu Jul 4 06:22:31 UTC 2024


> Similar to how `MethodHandle#invoke(Exact)` methods are already handled, this change adds special casing for `VarHandle.{access-mode}` methods.
> 
> The exception message is less exact, but I think that's acceptable.

Hannes Greule has updated the pull request incrementally with one additional commit since the last revision:

  address comments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20015/files
  - new: https://git.openjdk.org/jdk/pull/20015/files/fe43b749..e329ceb2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20015&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20015&range=00-01

  Stats: 43 lines in 2 files changed: 17 ins; 16 del; 10 mod
  Patch: https://git.openjdk.org/jdk/pull/20015.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20015/head:pull/20015

PR: https://git.openjdk.org/jdk/pull/20015


More information about the core-libs-dev mailing list