hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 21913 0e2fd7282ac6
parent 21768 b7dba4cde1c6
child 21919 70200a883e9d
--- a/hotspot/src/share/vm/oops/instanceKlass.cpp	Tue Dec 03 08:36:15 2013 -0800
+++ b/hotspot/src/share/vm/oops/instanceKlass.cpp	Tue Dec 03 11:13:14 2013 -0800
@@ -1427,6 +1427,17 @@
   return InstanceKlass::find_method(methods(), name, signature);
 }
 
+// find_instance_method looks up the name/signature in the local methods array
+// and skips over static methods
+Method* InstanceKlass::find_instance_method(
+    Array<Method*>* methods, Symbol* name, Symbol* signature) {
+  Method* meth = InstanceKlass::find_method(methods, name, signature);
+  if (meth != NULL && meth->is_static()) {
+      meth = NULL;
+  }
+  return meth;
+}
+
 // find_method looks up the name/signature in the local methods array
 Method* InstanceKlass::find_method(
     Array<Method*>* methods, Symbol* name, Symbol* signature) {