8198719: MethodHandleHelper.linkToStatic should drop MH arg

Reviewed-by: vlivanov, dlong
This commit is contained in:
Dmitry Chuyko 2018-06-19 18:18:46 +03:00
parent 0bb3443a98
commit d571ea407c
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ public class InvokerSignatureMismatch {
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 {

View File

@ -49,8 +49,8 @@ public class MethodHandleHelper {
}
@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