hotspot/src/share/vm/oops/instanceKlass.hpp
changeset 33602 16053580a684
parent 33593 60764a78fa5c
child 33611 9abd65805e19
equal deleted inserted replaced
33597:5d42601232b1 33602:16053580a684
   860   bool implements_interface(Klass* k) const;
   860   bool implements_interface(Klass* k) const;
   861   bool is_same_or_direct_interface(Klass* k) const;
   861   bool is_same_or_direct_interface(Klass* k) const;
   862 
   862 
   863 #ifdef ASSERT
   863 #ifdef ASSERT
   864   // check whether this class or one of its superclasses was redefined
   864   // check whether this class or one of its superclasses was redefined
   865   bool has_redefined_this_or_super() const;
   865   bool has_redefined_this_or_super();
   866 #endif
   866 #endif
   867 
   867 
   868   // Access to the implementor of an interface.
   868   // Access to the implementor of an interface.
   869   Klass* implementor() const
   869   Klass* implementor() const
   870   {
   870   {
   920   void array_klasses_do(void f(Klass* k, TRAPS), TRAPS);
   920   void array_klasses_do(void f(Klass* k, TRAPS), TRAPS);
   921   bool super_types_do(SuperTypeClosure* blk);
   921   bool super_types_do(SuperTypeClosure* blk);
   922 
   922 
   923   // Casting from Klass*
   923   // Casting from Klass*
   924   static InstanceKlass* cast(Klass* k) {
   924   static InstanceKlass* cast(Klass* k) {
   925     assert(k == NULL || k->oop_is_instance(), "cast to InstanceKlass");
   925     assert(k != NULL, "k should not be null");
       
   926     assert(k->oop_is_instance(), "cast to InstanceKlass");
   926     return static_cast<InstanceKlass*>(k);
   927     return static_cast<InstanceKlass*>(k);
   927   }
   928   }
   928 
   929 
   929   InstanceKlass* java_super() const {
   930   InstanceKlass* java_super() const {
   930     return (super() == NULL) ? NULL : cast(super());
   931     return (super() == NULL) ? NULL : cast(super());