changeset 589:465813e0303a

6794939: assert(_base == OopPtr,"subclass must override cast_to_ptr_type") Summary: Fix the assert in TypeKlassPtr::cast_to_ptr_type(). Reviewed-by: never
author kvn
date Wed, 21 Jan 2009 11:18:38 -0800
parents 48bb4a49b7ac
children 3b5ac9e7e6ea
files src/share/vm/opto/type.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 }