From d34216d2166872632870d4e06b829fc8c57e9a35 Mon Sep 17 00:00:00 2001 From: vlivanov Date: Tue, 21 Apr 2015 21:06:06 +0300 Subject: [PATCH] 8078290: Customize adapted MethodHandle in MH.invoke() case Reviewed-by: jrose --- src/share/classes/java/lang/invoke/Invokers.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/classes/java/lang/invoke/Invokers.java b/src/share/classes/java/lang/invoke/Invokers.java index e09dc3686..a2da2a950 100644 --- a/src/share/classes/java/lang/invoke/Invokers.java +++ b/src/share/classes/java/lang/invoke/Invokers.java @@ -281,7 +281,7 @@ class Invokers { 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); -- GitLab