comparison src/share/vm/oops/klass.cpp @ 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 b2e698d2276c
children 54bc75c144b0
comparison
equal deleted inserted replaced
17583:b5ae226b7516 18046:096a7e12d63f
1 /* 1 /*
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
126 bool Klass::compute_is_subtype_of(Klass* k) { 126 bool Klass::compute_is_subtype_of(Klass* k) {
127 assert(k->is_klass(), "argument must be a class"); 127 assert(k->is_klass(), "argument must be a class");
128 return is_subclass_of(k); 128 return is_subclass_of(k);
129 } 129 }
130 130
131 Klass* Klass::find_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const {
132 #ifdef ASSERT
133 tty->print_cr("Error: find_field called on a klass oop."
134 " Likely error: reflection method does not correctly"
135 " wrap return value in a mirror object.");
136 #endif
137 ShouldNotReachHere();
138 return NULL;
139 }
131 140
132 Method* Klass::uncached_lookup_method(Symbol* name, Symbol* signature) const { 141 Method* Klass::uncached_lookup_method(Symbol* name, Symbol* signature) const {
133 #ifdef ASSERT 142 #ifdef ASSERT
134 tty->print_cr("Error: uncached_lookup_method called on a klass oop." 143 tty->print_cr("Error: uncached_lookup_method called on a klass oop."
135 " Likely error: reflection method does not correctly" 144 " Likely error: reflection method does not correctly"