mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
14 lines
297 B
Java
14 lines
297 B
Java
// "Use constructor 'Test()'" "true"
|
|
import java.lang.invoke.*;
|
|
|
|
class Main {
|
|
void foo() throws Exception {
|
|
MethodHandles.Lookup l = MethodHandles.lookup();
|
|
l.findConstructor(Test.class, MethodType.methodType(void.class));
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public Test() {}
|
|
public Test(int a) {}
|
|
} |