hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 21913 0e2fd7282ac6
parent 21768 b7dba4cde1c6
child 21919 70200a883e9d
equal deleted inserted replaced
21912:8d2924674592 21913:0e2fd7282ac6
  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;