mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
if type's class is invalid, display its invalidity diagnostics (EA-49843)
This commit is contained in:
@@ -1039,7 +1039,10 @@ public final class PsiUtil extends PsiUtilCore {
|
||||
}
|
||||
if (type instanceof PsiClassType) {
|
||||
try {
|
||||
((PsiClassType)type).resolve(); // should throw exception
|
||||
PsiClass psiClass = ((PsiClassType)type).resolve(); // should throw exception
|
||||
if (psiClass != null) {
|
||||
ensureValid(psiClass);
|
||||
}
|
||||
}
|
||||
catch (PsiInvalidElementAccessException e) {
|
||||
throw customMessage == null? e : new RuntimeException(customMessage, e);
|
||||
|
||||
Reference in New Issue
Block a user