mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-18 17:20:54 +07:00
12 lines
272 B
Java
12 lines
272 B
Java
import java.lang.invoke.*;
|
|
|
|
public class Main {
|
|
void foo() throws Throwable {
|
|
MethodHandles.Lookup lookup = MethodHandles.lookup();
|
|
lookup.<caret>findStatic(Test.class, "method", MethodType.methodType(void.class));
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public void method() {}
|
|
} |