mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
12 lines
252 B
Java
12 lines
252 B
Java
import java.lang.invoke.*;
|
|
|
|
class Main {
|
|
void foo() throws Exception {
|
|
MethodHandles.Lookup l = MethodHandles.lookup();
|
|
l.findConstructor(Test.class, MethodType.methodType(void.class, int.class));
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public Test(int a) {}
|
|
} |