On Wed, 3 Jul 2024 19:43:05 GMT, Hannes Greule <hgre...@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 <hgre...@openjdk.org>
Committer: Chen Liang <li...@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

Reply via email to