changeset 51276:fff48b02d4a6

8198719: MethodHandleHelper.linkToStatic should drop MH arg Reviewed-by: vlivanov, dlong
author dchuyko
date Tue, 19 Jun 2018 18:18:46 +0300
parents 66aa15778c5a
children f2d94a0619a2
files test/hotspot/jtreg/compiler/jsr292/InvokerSignatureMismatch.java test/hotspot/jtreg/compiler/jsr292/patches/java.base/java/lang/invoke/MethodHandleHelper.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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