mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
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:
@@ -0,0 +1,21 @@
|
||||
class Main {
|
||||
void foo() {
|
||||
Class<?> a = Class.forName("Test");
|
||||
Class<?> b = a;
|
||||
Class<?> c = b;
|
||||
Class<?> d = c;
|
||||
Class<?> e = d;
|
||||
Class<?> f = e;
|
||||
Class<?> g = f;
|
||||
Class<?> h = g;
|
||||
Class<?> i = h;
|
||||
Class<?> j = i;
|
||||
Class<?> k = j;
|
||||
k.getField("num2");
|
||||
}
|
||||
}
|
||||
|
||||
class Test {
|
||||
public int num;
|
||||
public int num2;
|
||||
}
|
||||
Reference in New Issue
Block a user