mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
diagnostics for EA-845119 IOE: PsiJavaCodeReferenceElementImpl.cannotBindError
GitOrigin-RevId: 1461dd40189a8db4fa89be35d56b52f710ba946a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
23aab75e6d
commit
cb9a3d9d36
@@ -569,7 +569,9 @@ public class PsiJavaCodeReferenceElementImpl extends CompositePsiElement impleme
|
||||
|
||||
case PACKAGE_NAME_KIND:
|
||||
if (!(element instanceof PsiPackage)) {
|
||||
throw cannotBindError(element, kind, element+ " is not a PsiPackage but "+element.getClass());
|
||||
throw cannotBindError(element, kind, "I, " + this +" ("+getClass()+") contained in "+containingFile+" in "+containingFile.getVirtualFile()+
|
||||
" am a package since my treeParent is " + getTreeParent()+" of "+getTreeParent().getElementType()+
|
||||
", but "+element+ " is not a PsiPackage but "+element.getClass());
|
||||
}
|
||||
return bindToPackage((PsiPackage)element);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user