diff src/share/vm/oops/constMethod.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 4735d2c84362
children b2dbd323c668
line wrap: on
line diff
--- a/src/share/vm/oops/constMethod.cpp	Thu Oct 04 14:55:57 2012 +0200
+++ b/src/share/vm/oops/constMethod.cpp	Tue Nov 06 15:09:37 2012 -0500
@@ -113,8 +113,7 @@
 }
 
 Method* ConstMethod::method() const {
-    return InstanceKlass::cast(_constants->pool_holder())->method_with_idnum(
-                               _method_idnum);
+    return _constants->pool_holder()->method_with_idnum(_method_idnum);
   }
 
 // linenumber table - note that length is unknown until decompression,