Mercurial > hg > graal-compiler
diff 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 |
line wrap: on
line diff
--- a/src/share/vm/oops/instanceKlass.cpp Tue Dec 03 08:36:15 2013 -0800 +++ b/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) {