mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 03:13:40 +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,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;
|
||||
}
|
||||
Reference in New Issue
Block a user