src/hotspot/share/oops/klass.cpp
changeset 53152 08db5aa02f7b
parent 52907 7cc17c043ce0
child 53153 af7afdababd3
equal deleted inserted replaced
53151:22baf8054a40 53152:08db5aa02f7b
     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.");