comparison src/share/vm/oops/instanceKlass.cpp @ 13414:379f11bc04fc

8028438: static superclass method masks default methods Reviewed-by: hseigel, lfoltan, coleenp
author acorn
date Tue, 03 Dec 2013 11:13:14 -0800
parents 22eaa15b7960
children 816c89d5957d
comparison
equal deleted inserted replaced
13413:7a58803b5069 13414:379f11bc04fc
1425 // find_method looks up the name/signature in the local methods array 1425 // find_method looks up the name/signature in the local methods array
1426 Method* InstanceKlass::find_method(Symbol* name, Symbol* signature) const { 1426 Method* InstanceKlass::find_method(Symbol* name, Symbol* signature) const {
1427 return InstanceKlass::find_method(methods(), name, signature); 1427 return InstanceKlass::find_method(methods(), name, signature);
1428 } 1428 }
1429 1429
1430 // find_instance_method looks up the name/signature in the local methods array
1431 // and skips over static methods
1432 Method* InstanceKlass::find_instance_method(
1433 Array<Method*>* methods, Symbol* name, Symbol* signature) {
1434 Method* meth = InstanceKlass::find_method(methods, name, signature);
1435 if (meth != NULL && meth->is_static()) {
1436 meth = NULL;
1437 }
1438 return meth;
1439 }
1440
1430 // find_method looks up the name/signature in the local methods array 1441 // find_method looks up the name/signature in the local methods array
1431 Method* InstanceKlass::find_method( 1442 Method* InstanceKlass::find_method(
1432 Array<Method*>* methods, Symbol* name, Symbol* signature) { 1443 Array<Method*>* methods, Symbol* name, Symbol* signature) {
1433 int hit = find_method_index(methods, name, signature); 1444 int hit = find_method_index(methods, name, signature);
1434 return hit >= 0 ? methods->at(hit): NULL; 1445 return hit >= 0 ? methods->at(hit): NULL;