RFR: 8284877: Check type compatibility before looking up method from receiver's vtable [v2]

Yi Yang yyang at openjdk.java.net
Thu Apr 21 06:04:28 UTC 2022


On Thu, 21 Apr 2022 00:46:51 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> Yi Yang has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   add jtreg test
>
> src/hotspot/share/interpreter/linkResolver.cpp line 1363:
> 
>> 1361:     ResourceMark rm(THREAD);
>> 1362:     stringStream ss;
>> 1363:     ss.print("Receiver should be type/subtype of %s", resolved_klass->external_name());
> 
> You should report the actual receiver type as well, as anyone encountering this exception would be completely baffled by it.

Done. I added a jtreg test case to reproduce it.

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

PR: https://git.openjdk.java.net/jdk/pull/8241


More information about the hotspot-runtime-dev mailing list