1.1 --- a/src/share/vm/oops/instanceKlass.hpp Thu Jul 09 11:10:19 2015 -0700 1.2 +++ b/src/share/vm/oops/instanceKlass.hpp Wed May 28 07:36:32 2014 -0700 1.3 @@ -808,6 +808,11 @@ 1.4 bool implements_interface(Klass* k) const; 1.5 bool is_same_or_direct_interface(Klass* k) const; 1.6 1.7 +#ifdef ASSERT 1.8 + // check whether this class or one of its superclasses was redefined 1.9 + bool has_redefined_this_or_super() const; 1.10 +#endif 1.11 + 1.12 // Access to the implementor of an interface. 1.13 Klass* implementor() const 1.14 { 1.15 @@ -865,8 +870,8 @@ 1.16 1.17 // Casting from Klass* 1.18 static InstanceKlass* cast(Klass* k) { 1.19 - assert(k->is_klass(), "must be"); 1.20 - assert(k->oop_is_instance(), "cast to InstanceKlass"); 1.21 + assert(k == NULL || k->is_klass(), "must be"); 1.22 + assert(k == NULL || k->oop_is_instance(), "cast to InstanceKlass"); 1.23 return (InstanceKlass*) k; 1.24 } 1.25