8078290: Customize adapted MethodHandle in MH.invoke() case
authorvlivanov
Tue, 21 Apr 2015 21:06:06 +0300
changeset 30363 bff7ca1e5d2a
parent 30362 2b921e0eb3e0
child 30364 429945d7189c
8078290: Customize adapted MethodHandle in MH.invoke() case Reviewed-by: jrose
jdk/src/java.base/share/classes/java/lang/invoke/Invokers.java
--- a/jdk/src/java.base/share/classes/java/lang/invoke/Invokers.java	Fri Apr 17 18:15:13 2015 +0300
+++ b/jdk/src/java.base/share/classes/java/lang/invoke/Invokers.java	Tue Apr 21 21:06:06 2015 +0300
@@ -281,7 +281,7 @@
             outArgs[0] = names[CHECK_TYPE];
         }
         if (CHECK_CUSTOM != -1) {
-            names[CHECK_CUSTOM] = new Name(NF_checkCustomized, names[CALL_MH]);
+            names[CHECK_CUSTOM] = new Name(NF_checkCustomized, outArgs[0]);
         }
         names[LINKER_CALL] = new Name(outCallType, outArgs);
         lform = new LambdaForm(debugName, INARG_LIMIT, names);