Java: Filter by 'static' modifier in MethodHandle/VarHandle completion assistance (IDEA-167319, IDEA-CR-19610)

This commit is contained in:
Pavel Dolgov
2017-03-23 13:12:16 +03:00
parent 988087f02c
commit 25afffeb70
10 changed files with 47 additions and 28 deletions
@@ -3,6 +3,6 @@ import java.lang.invoke.*;
public class Main {
void foo() throws Throwable {
MethodHandles.Lookup lookup = MethodHandles.lookup();
lookup.findStatic(Types.class, "sObjMethod", <caret>);
lookup.findStatic(Types.class, "objMethod", <caret>);
}
}
@@ -3,6 +3,6 @@ import java.lang.invoke.*;
public class Main {
void foo() throws Throwable {
MethodHandles.Lookup lookup = MethodHandles.lookup();
lookup.findStatic(Types.class, "sObjMethod", MethodType.methodType(Object.class, Object.class));
lookup.findStatic(Types.class, "objMethod", MethodType.methodType(Object.class, Object.class));
}
}