RFR (S): 8202686: Missing test case for 8200167 - final Object methods
David Holmes
david.holmes at oracle.com
Mon May 7 23:33:32 UTC 2018
Thanks Vladimir!
Sorry I literally just pushed this before I saw your email.
David
On 8/05/2018 7:31 AM, Vladimir Ivanov wrote:
> Looks good!
>
> Best regards,
> Vladimir Ivanov
>
> On 5/6/18 15:11, David Holmes wrote:
>> webrev: http://cr.openjdk.java.net/~dholmes/8202686/webrev/
>> bug: https://bugs.openjdk.java.net/browse/JDK-8202686
>>
>> JDK-8200167 added additional checks to ensure receiver typechecks were
>> in place where needed for invokespecial invocations. There was one
>> variation missing in the test: invoking a final Object method via an
>> interface reference. This is potentially different to a non-final
>> Object method because the finality means the method is treated as
>> non-virtual and so activates different call paths in the logic.
>>
>> No unexpected behaviour was found but the test case is added for
>> completeness (which is significant when we adapt this invokeinterface
>> testing for the nestmates work (JEP 181).
>>
>> There were also a couple of positive MH invocations missing from the
>> test so they were added for completeness as well.
>>
>> Thanks,
>> David
More information about the core-libs-dev
mailing list