# HG changeset patch # User kvn # Date 1232565518 28800 # Node ID 465813e0303a1c831bd581130c4796d4243c7ba9 # Parent 48bb4a49b7aca1e1fe3bd2e6ca5125f66acbee06 6794939: assert(_base == OopPtr,"subclass must override cast_to_ptr_type") Summary: Fix the assert in TypeKlassPtr::cast_to_ptr_type(). Reviewed-by: never diff -r 48bb4a49b7ac -r 465813e0303a src/share/vm/opto/type.cpp --- a/src/share/vm/opto/type.cpp Fri Jan 16 11:23:10 2009 -0800 +++ b/src/share/vm/opto/type.cpp Wed Jan 21 11:18:38 2009 -0800 @@ -3667,7 +3667,7 @@ //------------------------------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); }