IDEA-168309 Completion inside Class.forName starts suggesting root packages again when something unknown entered

1. getCompletionContext() should not return root packages if context reference is present but cannot be resolved
2. InstanceofExpressionPostfixTemplate should not be available inside the string literals

GitOrigin-RevId: ad08e280cec09ddb6896c9d358c41cfc68b2cb8e
This commit is contained in:
Tagir Valeev
2019-05-21 15:11:13 +03:00
committed by intellij-monorepo-bot
parent 4631c256b9
commit 0c7edc2939
5 changed files with 25 additions and 2 deletions
@@ -0,0 +1,5 @@
class Main {
void foo() throws ReflectiveOperationException {
Class.forName("com.foooooo.<caret>");
}
}
@@ -0,0 +1,5 @@
class Main {
void foo() throws ReflectiveOperationException {
Class.forName("com.foooooo.<caret>");
}
}