8023004: JSR 292: java.lang.RuntimeException: Original target method was called.
Reviewed-by: jrose
--- a/hotspot/src/share/vm/prims/methodHandles.cpp Tue Oct 15 08:38:35 2013 +0200
+++ b/hotspot/src/share/vm/prims/methodHandles.cpp Wed Oct 23 20:15:24 2013 +0400
@@ -1194,9 +1194,7 @@
} else if (vmtarget->is_klass()) {
x = ((Klass*) vmtarget)->java_mirror();
} else if (vmtarget->is_method()) {
- Handle mname2 = MethodHandles::new_MemberName(CHECK_NULL);
- CallInfo info((Method*)vmtarget);
- x = MethodHandles::init_method_MemberName(mname2, info);
+ x = mname();
}
result->obj_at_put(1, x);
return JNIHandles::make_local(env, result());