hotspot/src/share/vm/prims/jni.cpp
changeset 14391 df0a1573d5bd
parent 13977 92de166c91b3
child 14488 ab48109f7d1b
child 14477 95e66ea71f71
--- a/hotspot/src/share/vm/prims/jni.cpp	Thu Oct 04 14:55:57 2012 +0200
+++ b/hotspot/src/share/vm/prims/jni.cpp	Tue Nov 06 15:09:37 2012 -0500
@@ -2985,7 +2985,7 @@
   }
 
   // A jfieldID for a static field is a JNIid specifying the field holder and the offset within the Klass*
-  JNIid* id = InstanceKlass::cast(fd.field_holder())->jni_id_for(fd.offset());
+  JNIid* id = fd.field_holder()->jni_id_for(fd.offset());
   debug_only(id->set_is_static_field_id();)
 
   debug_only(id->verify(fd.field_holder()));
@@ -4016,7 +4016,7 @@
   if (PrintJNIResolving) {
     ResourceMark rm(THREAD);
     tty->print_cr("[Registering JNI native method %s.%s]",
-      Klass::cast(method->method_holder())->external_name(),
+      method->method_holder()->external_name(),
       method->name()->as_C_string());
   }
   return true;