mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8145148: InterfaceMethod CP entry pointing to a class should cause ICCE
Pass tag in LinkInfo and check that resolved method type matches tag, fix tests. Reviewed-by: sspitsyn, minqi
This commit is contained in:
parent
6253b1d251
commit
c36295e947
18 changed files with 543 additions and 62 deletions
|
@ -661,8 +661,7 @@ C2V_VMENTRY(jobject, resolveMethod, (JNIEnv *, jobject, jobject receiver_jvmci_t
|
|||
Symbol* h_name = method->name();
|
||||
Symbol* h_signature = method->signature();
|
||||
|
||||
bool check_access = true;
|
||||
LinkInfo link_info(h_resolved, h_name, h_signature, caller_klass, check_access);
|
||||
LinkInfo link_info(h_resolved, h_name, h_signature, caller_klass);
|
||||
methodHandle m;
|
||||
// Only do exact lookup if receiver klass has been linked. Otherwise,
|
||||
// the vtable has not been setup, and the LinkResolver will fail.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue