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

Jorn Vernee jvernee at openjdk.org
Fri Jul 5 14:27:37 UTC 2024


On Thu, 4 Jul 2024 06:22:31 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.
>
> Hannes Greule has updated the pull request incrementally with one additional commit since the last revision:
> 
>   address comments

I think this needs a CSR, to document the change in behavior. (See e.g. https://bugs.openjdk.org/browse/JDK-8335554 which is a very similar case)

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

PR Comment: https://git.openjdk.org/jdk/pull/20015#issuecomment-2210971780


More information about the core-libs-dev mailing list