mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +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,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(){}
|
||||
}
|
||||
Reference in New Issue
Block a user