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

David Holmes david.holmes at oracle.com
Mon Aug 17 02:06:04 UTC 2020


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