hotspot/src/share/vm/interpreter/interpreterRuntime.cpp
changeset 14488 ab48109f7d1b
parent 13961 aeaa21c167d1
child 14490 5bb45ed999ee
--- a/hotspot/src/share/vm/interpreter/interpreterRuntime.cpp	Fri Nov 09 22:22:53 2012 -0800
+++ b/hotspot/src/share/vm/interpreter/interpreterRuntime.cpp	Mon Nov 12 16:15:05 2012 -0500
@@ -312,7 +312,7 @@
 
 IRT_ENTRY(void, InterpreterRuntime::create_klass_exception(JavaThread* thread, char* name, oopDesc* obj))
   ResourceMark rm(thread);
-  const char* klass_name = Klass::cast(obj->klass())->external_name();
+  const char* klass_name = obj->klass()->external_name();
   // lookup exception klass
   TempNewSymbol s = SymbolTable::new_symbol(name, CHECK);
   if (ProfileTraps) {
@@ -341,7 +341,7 @@
 
   ResourceMark rm(thread);
   char* message = SharedRuntime::generate_class_cast_message(
-    thread, Klass::cast(obj->klass())->external_name());
+    thread, obj->klass()->external_name());
 
   if (ProfileTraps) {
     note_trap(thread, Deoptimization::Reason_class_check, CHECK);