Mercurial > hg > graal-compiler
diff src/share/vm/oops/arrayKlass.cpp @ 20527:8cb56c8cb30d
Merge
author | jiangli |
---|---|
date | Mon, 15 Sep 2014 16:39:00 -0400 |
parents | 6e0cb14ce59b 54bc75c144b0 |
children | f0bedf980c65 |
line wrap: on
line diff
--- a/src/share/vm/oops/arrayKlass.cpp Wed Sep 10 09:05:31 2014 -0700 +++ b/src/share/vm/oops/arrayKlass.cpp Mon Sep 15 16:39:00 2014 -0400 @@ -64,6 +64,13 @@ return NULL; } +// find field according to JVM spec 5.4.3.2, returns the klass in which the field is defined +Klass* ArrayKlass::find_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const { + // There are no fields in an array klass but look to the super class (Object) + assert(super(), "super klass must be present"); + return super()->find_field(name, sig, fd); +} + Method* ArrayKlass::uncached_lookup_method(Symbol* name, Symbol* signature, MethodLookupMode mode) const { // There are no methods in an array klass but the super class (Object) has some assert(super(), "super klass must be present");