hotspot/src/share/vm/oops/instanceKlass.cpp
changeset 24828 dd5406c950a1
parent 24658 e41df2fc6e87
child 25351 7c198a690050
equal deleted inserted replaced
24826:ad80eed312fc 24828:dd5406c950a1
  1499     lookup_mode = skip_overpass;   // Always ignore overpass methods in superclasses
  1499     lookup_mode = skip_overpass;   // Always ignore overpass methods in superclasses
  1500   }
  1500   }
  1501   return NULL;
  1501   return NULL;
  1502 }
  1502 }
  1503 
  1503 
       
  1504 #ifdef ASSERT
       
  1505 // search through class hierarchy and return true if this class or
       
  1506 // one of the superclasses was redefined
       
  1507 bool InstanceKlass::has_redefined_this_or_super() const {
       
  1508   const InstanceKlass* klass = this;
       
  1509   while (klass != NULL) {
       
  1510     if (klass->has_been_redefined()) {
       
  1511       return true;
       
  1512     }
       
  1513     klass = InstanceKlass::cast(klass->super());
       
  1514   }
       
  1515   return false;
       
  1516 }
       
  1517 #endif
       
  1518 
  1504 // lookup a method in the default methods list then in all transitive interfaces
  1519 // lookup a method in the default methods list then in all transitive interfaces
  1505 // Do NOT return private or static methods
  1520 // Do NOT return private or static methods
  1506 Method* InstanceKlass::lookup_method_in_ordered_interfaces(Symbol* name,
  1521 Method* InstanceKlass::lookup_method_in_ordered_interfaces(Symbol* name,
  1507                                                          Symbol* signature) const {
  1522                                                          Symbol* signature) const {
  1508   Method* m = NULL;
  1523   Method* m = NULL;