changeset 5564:d95eca175eff

8023004: JSR 292: java.lang.RuntimeException: Original target method was called. Reviewed-by: jrose
author sspitsyn
date Wed, 23 Oct 2013 20:15:24 +0400
parents 68f07c29521b
children 0d1661d63d70
files src/share/vm/prims/methodHandles.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/prims/methodHandles.cpp	Tue Oct 15 08:38:35 2013 +0200
+++ b/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());