mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
Java: Provide completion inside literal argument of Class.forName() and ClassLoader.loadClass() (IDEA-167267)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import foo.bar.*;
|
||||
class Main {
|
||||
void foo() throws ReflectiveOperationException {
|
||||
Class.forName("foo.bar.P<caret>");
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import foo.bar.*;
|
||||
class Main {
|
||||
void foo() throws ReflectiveOperationException {
|
||||
Class.forName("foo.bar.PublicClass");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import foo.bar.*;
|
||||
class Main {
|
||||
void foo() throws ReflectiveOperationException {
|
||||
Class.forName("foo.bar.PublicClass.<caret>");
|
||||
}
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import foo.bar.*;
|
||||
class Main {
|
||||
void foo() throws ReflectiveOperationException {
|
||||
Class.forName("foo.bar.PublicClass.NestedClass");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import foo.bar.one.*;
|
||||
import foo.bar.two.*;
|
||||
class Main {
|
||||
void foo() throws ReflectiveOperationException {
|
||||
Class.forName("foo.bar.<caret>");
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import foo.bar.one.*;
|
||||
import foo.bar.two.*;
|
||||
class Main {
|
||||
void foo() throws ReflectiveOperationException {
|
||||
Class.forName("foo.bar.one");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import foo.bar.*;
|
||||
class Main {
|
||||
void foo() throws ReflectiveOperationException {
|
||||
Thread.currentThread().getContextClassLoader().loadClass("foo.bar.<caret>");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import foo.bar.*;
|
||||
class Main {
|
||||
void foo() throws ReflectiveOperationException {
|
||||
Thread.currentThread().getContextClassLoader().loadClass("foo.bar.PublicClass");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user