[jdk17] RFR: 8267421: j.l.constant.DirectMethodHandleDesc.Kind.valueOf(int) implementation doesn't conform to the spec regarding REF_invokeInterface handling [v2]

Vicente Romero vromero at openjdk.java.net
Tue Jun 22 01:24:53 UTC 2021


On Tue, 22 Jun 2021 00:45:36 GMT, Mandy Chung <mchung at openjdk.org> wrote:

>> Vicente Romero has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   updating after review comments
>
> test/jdk/java/lang/constant/MethodHandleDescTest.java line 379:
> 
>> 377:         for (int refKind : isInterfaceIgnored) {
>> 378:             assertEquals(Kind.valueOf(refKind, false), Kind.valueOf(refKind, true));
>> 379:         }
> 
> Can you also add the test cases to verify `Kind::valueOf` with `REF_invokeStatic` and `REF_invokeSpecial`?

please see them below, thanks

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

PR: https://git.openjdk.java.net/jdk17/pull/29


More information about the core-libs-dev mailing list