equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, 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. |
157 |
157 |
158 void Klass::initialize(TRAPS) { |
158 void Klass::initialize(TRAPS) { |
159 ShouldNotReachHere(); |
159 ShouldNotReachHere(); |
160 } |
160 } |
161 |
161 |
162 bool Klass::compute_is_subtype_of(Klass* k) { |
|
163 assert(k->is_klass(), "argument must be a class"); |
|
164 return is_subclass_of(k); |
|
165 } |
|
166 |
|
167 Klass* Klass::find_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const { |
162 Klass* Klass::find_field(Symbol* name, Symbol* sig, fieldDescriptor* fd) const { |
168 #ifdef ASSERT |
163 #ifdef ASSERT |
169 tty->print_cr("Error: find_field called on a klass oop." |
164 tty->print_cr("Error: find_field called on a klass oop." |
170 " Likely error: reflection method does not correctly" |
165 " Likely error: reflection method does not correctly" |
171 " wrap return value in a mirror object."); |
166 " wrap return value in a mirror object."); |