mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 23:20:57 +07:00
12 lines
263 B
Java
12 lines
263 B
Java
import java.lang.invoke.*;
|
|
|
|
class Main {
|
|
void foo() throws Exception {
|
|
MethodHandles.Lookup l = MethodHandles.lookup();
|
|
l.<caret>findVirtual(Test.class, "method", MethodType.methodType(void.class));
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public static void method() {}
|
|
} |