From ae8aa00398ace0c3e967bb3e93fb260c9d05bb74 Mon Sep 17 00:00:00 2001 From: Vladimir Kozlov Date: Wed, 21 Jan 2009 11:18:38 -0800 Subject: [PATCH] 6794939: assert(_base == OopPtr,"subclass must override cast_to_ptr_type") Fix the assert in TypeKlassPtr::cast_to_ptr_type(). Reviewed-by: never --- hotspot/src/share/vm/opto/type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hotspot/src/share/vm/opto/type.cpp b/hotspot/src/share/vm/opto/type.cpp index 37c895b82e5..6830277ea3f 100644 --- a/hotspot/src/share/vm/opto/type.cpp +++ b/hotspot/src/share/vm/opto/type.cpp @@ -3667,7 +3667,7 @@ const TypePtr *TypeKlassPtr::add_offset( intptr_t offset ) const { //------------------------------cast_to_ptr_type------------------------------- const Type *TypeKlassPtr::cast_to_ptr_type(PTR ptr) const { - assert(_base == OopPtr, "subclass must override cast_to_ptr_type"); + assert(_base == KlassPtr, "subclass must override cast_to_ptr_type"); if( ptr == _ptr ) return this; return make(ptr, _klass, _offset); }