diff src/share/vm/classfile/vmSymbols.cpp @ 6940:18fb7da42534

8000725: NPG: method_holder() and pool_holder() and pool_holder field should be InstanceKlass Summary: Change types of above methods and field to InstanceKlass and remove unneeded casts from the source files. Reviewed-by: dholmes, coleenp, zgu Contributed-by: harold.seigel@oracle.com
author coleenp
date Tue, 06 Nov 2012 15:09:37 -0500
parents 65d07d9ee446
children f2aebc22372a
line wrap: on
line diff
--- a/src/share/vm/classfile/vmSymbols.cpp	Thu Oct 04 14:55:57 2012 +0200
+++ b/src/share/vm/classfile/vmSymbols.cpp	Tue Nov 06 15:09:37 2012 -0500
@@ -507,7 +507,7 @@
 }
 
 void vmIntrinsics::verify_method(ID actual_id, Method* m) {
-  Symbol* mk = Klass::cast(m->method_holder())->name();
+  Symbol* mk = m->method_holder()->name();
   ID declared_id = match_method_with_klass(m, mk);
 
   if (declared_id == actual_id)  return; // success