Skip to content
Permalink
Browse files
8252838: Panama foreign-abi branch fails to build
Reviewed-by: jvernee
  • Loading branch information
sundararajana committed Sep 7, 2020
1 parent f6e1fcd commit 769c0808f977ec753564c88af7598a4ebd9f1524
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/java.base/share/classes/java/lang/invoke/NativeMethodHandle.java
@@ -29,6 +29,7 @@
import jdk.internal.invoke.NativeEntryPoint;

import static java.lang.invoke.LambdaForm.*;
import static java.lang.invoke.MethodHandleNatives.Constants.LM_TRUSTED;
import static java.lang.invoke.MethodHandleNatives.Constants.REF_invokeStatic;
import static java.lang.invoke.MethodHandleStatics.newInternalError;

@@ -87,7 +88,7 @@ private static LambdaForm makePreparedLambdaForm(MethodType mtype) {
.appendParameterTypes(Object.class);
MemberName linker = new MemberName(MethodHandle.class, "linkToNative", linkerType, REF_invokeStatic);
try {
linker = IMPL_NAMES.resolveOrFail(REF_invokeStatic, linker, null, NoSuchMethodException.class);
linker = IMPL_NAMES.resolveOrFail(REF_invokeStatic, linker, null, LM_TRUSTED, NoSuchMethodException.class);
} catch (ReflectiveOperationException ex) {
throw newInternalError(ex);
}

0 comments on commit 769c080

Please sign in to comment.