8198719: MethodHandleHelper.linkToStatic should drop MH arg
authordchuyko
Tue, 19 Jun 2018 18:18:46 +0300
changeset 50642 fff48b02d4a6
parent 50641 66aa15778c5a
child 50643 f2d94a0619a2
8198719: MethodHandleHelper.linkToStatic should drop MH arg Reviewed-by: vlivanov, dlong
test/hotspot/jtreg/compiler/jsr292/InvokerSignatureMismatch.java
test/hotspot/jtreg/compiler/jsr292/patches/java.base/java/lang/invoke/MethodHandleHelper.java
--- a/test/hotspot/jtreg/compiler/jsr292/InvokerSignatureMismatch.java	Tue Jun 19 18:18:25 2018 +0300
+++ b/test/hotspot/jtreg/compiler/jsr292/InvokerSignatureMismatch.java	Tue Jun 19 18:18:46 2018 +0300
@@ -39,7 +39,7 @@
 
     static void mainLink(int i) throws Throwable {
         Object name = MethodHandleHelper.internalMemberName(INT_MH);
-        MethodHandleHelper.linkToStatic(INT_MH, (float) i, name);
+        MethodHandleHelper.linkToStatic((float) i, name);
     }
 
     static void mainInvoke(int i) throws Throwable {
--- a/test/hotspot/jtreg/compiler/jsr292/patches/java.base/java/lang/invoke/MethodHandleHelper.java	Tue Jun 19 18:18:25 2018 +0300
+++ b/test/hotspot/jtreg/compiler/jsr292/patches/java.base/java/lang/invoke/MethodHandleHelper.java	Tue Jun 19 18:18:46 2018 +0300
@@ -49,8 +49,8 @@
     }
 
     @ForceInline
-    public static void linkToStatic(MethodHandle mh, float arg, Object name) throws Throwable {
-        MethodHandle.linkToStatic(mh, arg, name);
+    public static void linkToStatic(float arg, Object name) throws Throwable {
+        MethodHandle.linkToStatic(arg, name);
     }
 
     @ForceInline