Integrated: 8335638: Calling VarHandle.{access-mode} methods reflectively throws wrong exception

Hannes Greule hgreule at openjdk.org
Thu Aug 1 14:44:39 UTC 2024


On Wed, 3 Jul 2024 19:43:05 GMT, Hannes Greule <hgreule at openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 9fe6e231
Author:    Hannes Greule <hgreule at openjdk.org>
Committer: Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/9fe6e2316aef8fd125a7905cff2a2d9ae5d26109
Stats:     77 lines in 2 files changed: 72 ins; 0 del; 5 mod

8335638: Calling VarHandle.{access-mode} methods reflectively throws wrong exception

Reviewed-by: liach

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

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


More information about the core-libs-dev mailing list