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; |