hotspot/src/share/vm/oops/arrayKlass.cpp
changeset 27020 a7c8010446c2
parent 26927 b9bd979b7d75
child 28731 f7339cba0a6a
--- a/hotspot/src/share/vm/oops/arrayKlass.cpp	Fri Oct 10 02:24:35 2014 -0700
+++ b/hotspot/src/share/vm/oops/arrayKlass.cpp	Wed May 07 19:38:22 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");