hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp
changeset 14488 ab48109f7d1b
parent 14294 130e947dfbe6
child 15475 73896d91270c
--- a/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp	Fri Nov 09 22:22:53 2012 -0800
+++ b/hotspot/src/share/vm/interpreter/bytecodeInterpreter.cpp	Mon Nov 12 16:15:05 2012 -0500
@@ -2043,8 +2043,8 @@
             if (objKlassOop != klassOf &&
                 !objKlassOop->is_subtype_of(klassOf)) {
               ResourceMark rm(THREAD);
-              const char* objName = Klass::cast(objKlassOop)->external_name();
-              const char* klassName = Klass::cast(klassOf)->external_name();
+              const char* objName = objKlassOop->external_name();
+              const char* klassName = klassOf->external_name();
               char* message = SharedRuntime::generate_class_cast_message(
                 objName, klassName);
               VM_JAVA_ERROR(vmSymbols::java_lang_ClassCastException(), message);