src/share/vm/oops/instanceKlass.cpp

changeset 6145
379f11bc04fc
parent 6132
22eaa15b7960
child 6151
816c89d5957d
     1.1 --- a/src/share/vm/oops/instanceKlass.cpp	Tue Dec 03 08:36:15 2013 -0800
     1.2 +++ b/src/share/vm/oops/instanceKlass.cpp	Tue Dec 03 11:13:14 2013 -0800
     1.3 @@ -1427,6 +1427,17 @@
     1.4    return InstanceKlass::find_method(methods(), name, signature);
     1.5  }
     1.6  
     1.7 +// find_instance_method looks up the name/signature in the local methods array
     1.8 +// and skips over static methods
     1.9 +Method* InstanceKlass::find_instance_method(
    1.10 +    Array<Method*>* methods, Symbol* name, Symbol* signature) {
    1.11 +  Method* meth = InstanceKlass::find_method(methods, name, signature);
    1.12 +  if (meth != NULL && meth->is_static()) {
    1.13 +      meth = NULL;
    1.14 +  }
    1.15 +  return meth;
    1.16 +}
    1.17 +
    1.18  // find_method looks up the name/signature in the local methods array
    1.19  Method* InstanceKlass::find_method(
    1.20      Array<Method*>* methods, Symbol* name, Symbol* signature) {

mercurial