changeset 10767:24578c3975f7

8078290: Customize adapted MethodHandle in MH.invoke() case Reviewed-by: jrose
author vlivanov
date Tue, 21 Apr 2015 21:06:06 +0300
parents 46ff7bd38287
children a6fc98719c47
files src/share/classes/java/lang/invoke/Invokers.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/lang/invoke/Invokers.java	Mon May 18 18:57:35 2015 +0530
+++ b/src/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);