mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
diagnose invalid type (EA-40285)
This commit is contained in:
+3
-1
@@ -370,7 +370,9 @@ public class PsiReferenceExpressionImpl extends PsiReferenceExpressionBase imple
|
||||
if (resolve instanceof PsiVariable) {
|
||||
PsiType type = ((PsiVariable)resolve).getType();
|
||||
ret = type instanceof PsiEllipsisType ? ((PsiEllipsisType)type).toArrayType() : type;
|
||||
LOG.assertTrue(ret == null || ret.isValid());
|
||||
if (ret != null && !ret.isValid()) {
|
||||
LOG.error("invalid type of " + resolve + " of class " + resolve.getClass() + ", valid=" + resolve.isValid());
|
||||
}
|
||||
if (resolve instanceof PsiField && !((PsiField)resolve).hasModifierProperty(PsiModifier.STATIC)) {
|
||||
owner = ((PsiField)resolve).getContainingClass();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user