8023004: JSR 292: java.lang.RuntimeException: Original target method was called.
authorsspitsyn
Wed, 23 Oct 2013 20:15:24 +0400
changeset 21107 aa84c4d14e6c
parent 21106 37ad7041ff83
child 21108 bb769f9ed280
8023004: JSR 292: java.lang.RuntimeException: Original target method was called. Reviewed-by: jrose
hotspot/src/share/vm/prims/methodHandles.cpp
--- 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());