hotspot/src/share/vm/services/heapDumper.cpp
changeset 14391 df0a1573d5bd
parent 13952 e3cf184080bc
child 14488 ab48109f7d1b
--- a/hotspot/src/share/vm/services/heapDumper.cpp	Thu Oct 04 14:55:57 2012 +0200
+++ b/hotspot/src/share/vm/services/heapDumper.cpp	Tue Nov 06 15:09:37 2012 -0500
@@ -1117,8 +1117,8 @@
   writer->write_symbolID(m->name());                // method's name
   writer->write_symbolID(m->signature());           // method's signature
 
-  assert(Klass::cast(m->method_holder())->oop_is_instance(), "not InstanceKlass");
-  writer->write_symbolID(InstanceKlass::cast(m->method_holder())->source_file_name());  // source file name
+  assert(m->method_holder()->oop_is_instance(), "not InstanceKlass");
+  writer->write_symbolID(m->method_holder()->source_file_name());  // source file name
   writer->write_u4(class_serial_num);               // class serial number
   writer->write_u4((u4) line_number);               // line number
 }