RFR: 8284579: Improve VarHandle checks for interpreter [v2]
Claes Redestad
redestad at openjdk.java.net
Fri Apr 8 12:20:33 UTC 2022
On Fri, 8 Apr 2022 12:12:06 GMT, ExE Boss <duke at openjdk.java.net> wrote:
>> Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Simplified as suggested by @ExE-Boss
>
> src/java.base/share/classes/java/lang/invoke/IndirectVarHandle.java line 104:
>
>> 102: if (exact && accessModeType(ad.type) != ad.symbolicMethodTypeExact) {
>> 103: throwWrongMethodTypeException(ad);
>> 104: }
>
> This could also be:
> Suggestion:
>
> super.checkExactAccessMode(ad);
Good suggestions, fixed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8160
More information about the core-libs-dev
mailing list