1.1 --- a/src/cpu/sparc/vm/sharedRuntime_sparc.cpp Thu Oct 04 14:55:57 2012 +0200 1.2 +++ b/src/cpu/sparc/vm/sharedRuntime_sparc.cpp Tue Nov 06 15:09:37 2012 -0500 1.3 @@ -2322,7 +2322,7 @@ 1.4 // Pre-load a static method's oop into O1. Used both by locking code and 1.5 // the normal JNI call code. 1.6 if (method->is_static() && !is_critical_native) { 1.7 - __ set_oop_constant(JNIHandles::make_local(Klass::cast(method->method_holder())->java_mirror()), O1); 1.8 + __ set_oop_constant(JNIHandles::make_local(method->method_holder()->java_mirror()), O1); 1.9 1.10 // Now handlize the static class mirror in O1. It's known not-null. 1.11 __ st_ptr(O1, SP, klass_offset + STACK_BIAS);