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,15 @@
class Main {
void foo() {
Class<?> a,b,c,d;
a = Class.forName("Test");
b = a;
c = b;
d = c;
d.getField("<caret>");
}
}
class Test {
public int num;
public int num2;
}