< prev index next >

test/jdk/java/foreign/enablenativeaccess/org/openjdk/foreigntest/PanamaMainUnnamedModule.java

Print this page
@@ -30,28 +30,28 @@
  import java.lang.reflect.Method;
  
  public class PanamaMainUnnamedModule {
     @Test
     public void testReflection() throws Throwable {
-        Method method = CLinker.class.getDeclaredMethod("getInstance");
+        Method method = CLinker.class.getDeclaredMethod("systemCLinker");
         method.invoke(null);
     }
  
     @Test
     public void testSetAccessible() throws Throwable {
-        Method method = CLinker.class.getDeclaredMethod("getInstance");
+        Method method = CLinker.class.getDeclaredMethod("systemCLinker");
         method.setAccessible(true);
         method.invoke(null);
     }
  
     @Test
     public void testInvoke() throws Throwable {
-        var mh = MethodHandles.lookup().findStatic(CLinker.class, "getInstance",
+        var mh = MethodHandles.lookup().findStatic(CLinker.class, "systemCLinker",
             MethodType.methodType(CLinker.class));
         var linker = (CLinker)mh.invokeExact();
     }
  
     @Test
     public void testDirectAccess() throws Throwable {
-        CLinker.getInstance();
+        CLinker.systemCLinker();
     }
  }
< prev index next >