mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-380311 [java-highlighting] Invalid code "cannot referenced from static context" not highlighted properly in Java
Follow-up: proper qualified references handling (cherry picked from commit c7f470065ab5c4ad97c9fb6ba02d6fa603e62a84) IJ-CR-194233 GitOrigin-RevId: 62df1ea06043b6475aa868ab70f0f413261c89d6
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a4f2bd1574
commit
132f486314
+4
@@ -1700,6 +1700,10 @@ final class ExpressionChecker {
|
||||
newExpression.getClassOrAnonymousClassReference() == expression) {
|
||||
return;
|
||||
}
|
||||
if (parent instanceof PsiNewExpression newExpression && newExpression.getQualifier() != null) {
|
||||
// The qualifier will be checked instead
|
||||
return;
|
||||
}
|
||||
if (parent instanceof PsiThisExpression || parent instanceof PsiSuperExpression) return;
|
||||
}
|
||||
if (!(expression instanceof PsiThisExpression) && !(expression instanceof PsiSuperExpression) ||
|
||||
|
||||
Reference in New Issue
Block a user