RFR 8251414: Add test that invokeinterface of a protected method in java.lang.Object throws NoSuchMethodError

Harold Seigel harold.seigel at oracle.com
Mon Aug 17 14:26:34 UTC 2020


Hi David,

This change got pushed before I saw your comments.  Let me know if I 
should enter a new RFE to add the comments that you request below.

Thanks, Harold

On 8/16/2020 10:06 PM, David Holmes wrote:
> Hi Harold,
>
> On 13/08/2020 4:14 am, Harold Seigel wrote:
>> Hi,
>>
>> Please review this change to add test cases to test 
>> hotspot/jtreg/runtime/8026394/InterfaceObjectTest.java to check for 
>> NoSuchMethodError exceptions when calling Object protected methods 
>> clone() and finalize() using invokeinterface.
>>
>> Open Webrev: 
>> http://cr.openjdk.java.net/~hseigel/bug_8251414/webrev/index.html
>
> Can you add a comment explaining why we need to use jasm and 
> reflection in this new case.
>
> Thanks,
> David
>
>> JBS Bug: https://bugs.openjdk.java.net/browse/JDK-8251414
>>
>> The fix was tested by running the modified test on multiple 
>> platforms, including Mac OS, Windows, and Linux.
>>
>> Thanks, Harold


More information about the hotspot-runtime-dev mailing list