RFR: 8199149: Improve the exception message thrown by VarHandle of unsupported operation [v2]
Chen Liang
liach at openjdk.org
Wed Jul 19 23:48:03 UTC 2023
On Wed, 19 Jul 2023 23:37:41 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:
> Note that `IndirectVarHandle` calls `super.checkAccessModeThenIsDirect`, so it ends up doing the check any way, I think?
In the initial patch, it was distinct; it was migrated to call `isAccessModeSupported` in a subsequent change, so the change in `IndirectVarHandle` was rolled back and the VHs share a more consistent behavior.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14928#issuecomment-1642899720
More information about the core-libs-dev
mailing list