Java: Improved completion for arguments of reflection calls getField() and getMethod() - extract the actual type from Class.forName and from generic type parameter to provide the code assistance (IDEA-167250)

This commit is contained in:
Pavel Dolgov
2017-02-02 14:55:52 +03:00
parent d06bc9dccb
commit 8a73604580
25 changed files with 508 additions and 71 deletions
@@ -0,0 +1,12 @@
class Main {
void foo() throws ReflectiveOperationException {
bar().getField("<caret>");
}
Class<Test> bar() throws ClassNotFoundException { return (Class<Test>) Class.forName("Test"); }
}
class Test {
public int num;
public void method(){}
}