comparison src/share/vm/prims/jni.cpp @ 12823:ac9cb1d5a202

8009130: Lambda: Fix access controls, loader constraints. Summary: New default methods list with inherited superinterface methods Reviewed-by: minqi, sspitsyn, coleenp
author acorn
date Mon, 07 Oct 2013 12:20:28 -0400
parents f9be370a7d54
children bdfbb1fb19ca
comparison
equal deleted inserted replaced
12822:cc4f5f8d885e 12823:ac9cb1d5a202
1589 } else { 1589 } else {
1590 m = NULL; 1590 m = NULL;
1591 } 1591 }
1592 } else { 1592 } else {
1593 m = klass->lookup_method(name, signature); 1593 m = klass->lookup_method(name, signature);
1594 // Look up interfaces 1594 if (m == NULL && klass->oop_is_instance()) {
1595 if (m == NULL && klass->oop_is_instance()) { 1595 m = InstanceKlass::cast(klass())->lookup_method_in_ordered_interfaces(name, signature);
1596 m = InstanceKlass::cast(klass())->lookup_method_in_all_interfaces(name,
1597 signature);
1598 } 1596 }
1599 } 1597 }
1600 if (m == NULL || (m->is_static() != is_static)) { 1598 if (m == NULL || (m->is_static() != is_static)) {
1601 THROW_MSG_0(vmSymbols::java_lang_NoSuchMethodError(), name_str); 1599 THROW_MSG_0(vmSymbols::java_lang_NoSuchMethodError(), name_str);
1602 } 1600 }