Java: Improved inspection "MethodHandle/VarHandle type mismatch" - show candidates for replacement of method/constructor in a separate pop-up menu (IDEA-167318)

This commit is contained in:
Pavel Dolgov
2017-03-17 15:15:45 +03:00
parent 741b74a23a
commit d81332e1f8
60 changed files with 268 additions and 105 deletions
@@ -0,0 +1,13 @@
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() {}
public Test(int a) {}
}