mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
15 lines
482 B
Java
15 lines
482 B
Java
// "Use method 'java.lang.Object method(java.lang.Object, java.lang.String)'" "true"
|
|
import java.lang.invoke.*;
|
|
|
|
class Main {
|
|
void foo() throws Exception {
|
|
MethodHandles.Lookup l = MethodHandles.lookup();
|
|
l.findVirtual(Test.class, "method", MethodType.methodType(Object.class, Object.class, String.class));
|
|
}
|
|
}
|
|
|
|
class Test {
|
|
public <T> T method(T a) {return null;}
|
|
public <T> T method(T a, T... b) {return null;}
|
|
public <T> T method(T a, String b) {return null;}
|
|
} |