Mercurial > hg > truffle
diff src/share/vm/oops/arrayKlass.hpp @ 18046:096a7e12d63f
8036805: Correct linker method lookup.
Summary: Correct handling of array of primitive type qualifiers during field and method resolution.
Reviewed-by: acorn, hseigel, ahgross
author | lfoltan |
---|---|
date | Tue, 15 Apr 2014 16:17:20 -0400 |
parents | 71180a6e5080 |
children | 54bc75c144b0 |
line wrap: on
line diff
--- a/src/share/vm/oops/arrayKlass.hpp Mon Apr 07 09:27:31 2014 -0400 +++ b/src/share/vm/oops/arrayKlass.hpp Tue Apr 15 16:17:20 2014 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,6 +28,7 @@ #include "memory/universe.hpp" #include "oops/klass.hpp" +class fieldDescriptor; class klassVtable; // ArrayKlass is the abstract baseclass for all array classes @@ -85,6 +86,9 @@ virtual oop multi_allocate(int rank, jint* sizes, TRAPS); objArrayOop allocate_arrayArray(int n, int length, TRAPS); + // find field according to JVM spec 5.4.3.2, returns the klass in which the field is defined + Klass* find_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const; + // Lookup operations Method* uncached_lookup_method(Symbol* name, Symbol* signature) const;