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:
Coleen Phillimore 2016-05-27 10:52:39 -04:00
parent 6253b1d251
commit c36295e947
18 changed files with 543 additions and 62 deletions

View file

@ -998,7 +998,7 @@ static methodHandle resolve_interface_call(instanceKlassHandle klass,
Symbol* signature = method->signature();
Symbol* name = method->name();
LinkResolver::resolve_interface_call(info, receiver, recv_klass,
LinkInfo(klass, name, signature, KlassHandle(), false),
LinkInfo(klass, name, signature),
true,
CHECK_(methodHandle()));
return info.selected_method();