< prev index next >

test/jdk/java/foreign/enablenativeaccess/panama_module/org/openjdk/foreigntest/PanamaMainInvoke.java

Print this page
*** 26,10 ***
  import java.lang.invoke.*;
  import jdk.incubator.foreign.*;
  
  public class PanamaMainInvoke {
     public static void main(String[] args) throws Throwable {
!        var mh = MethodHandles.lookup().findStatic(CLinker.class, "getInstance",
             MethodType.methodType(CLinker.class));
         var linker = (CLinker)mh.invokeExact();
     }
  }
--- 26,10 ---
  import java.lang.invoke.*;
  import jdk.incubator.foreign.*;
  
  public class PanamaMainInvoke {
     public static void main(String[] args) throws Throwable {
!        var mh = MethodHandles.lookup().findStatic(CLinker.class, "systemCLinker",
             MethodType.methodType(CLinker.class));
         var linker = (CLinker)mh.invokeExact();
     }
  }
< prev index next >