mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
15 lines
439 B
Java
15 lines
439 B
Java
// "Use method 'java.lang.Object method(java.lang.Object)'" "true"
|
|
import java.lang.invoke.*;
|
|
|
|
class Main {
|
|
void foo() throws Exception {
|
|
MethodHandles.Lookup l = MethodHandles.lookup();
|
|
l.findVirtual(Test.class, "method", <caret>MethodType.genericMethodType(2));
|
|
}
|
|
}
|
|
|
|
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;}
|
|
} |