mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8013418: assert(i == total_args_passed) in AdapterHandlerLibrary::get_adapter since 8-b87
Do not treat static methods as miranda methods. Reviewed-by: dholmes, acorn
This commit is contained in:
parent
04fdba24b5
commit
f631e3d253
2 changed files with 52 additions and 0 deletions
|
@ -519,6 +519,9 @@ bool klassVtable::is_miranda_entry_at(int i) {
|
|||
// check if a method is a miranda method, given a class's methods table and it's super
|
||||
// the caller must make sure that the method belongs to an interface implemented by the class
|
||||
bool klassVtable::is_miranda(Method* m, Array<Method*>* class_methods, Klass* super) {
|
||||
if (m->is_static()) {
|
||||
return false;
|
||||
}
|
||||
Symbol* name = m->name();
|
||||
Symbol* signature = m->signature();
|
||||
if (InstanceKlass::find_method(class_methods, name, signature) == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue