PsiFileImpl.switchFromStubToAst logging: don't call psi.toString to avoid SOE in cases it does getText

This commit is contained in:
peter
2016-06-06 12:53:53 +02:00
parent fb0f1f9327
commit 9e023ec45e
@@ -260,7 +260,13 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
private void switchFromStubToAst(List<Pair<StubBasedPsiElementBase, AstPath>> bindings) {
if (!bindings.isEmpty() && myUseStrongRefs) {
LOG.error(this + " of " + getClass() + "; " + bindings);
List<String> psiStrings = ContainerUtil.map(bindings, new Function<Pair<StubBasedPsiElementBase, AstPath>, String>() {
@Override
public String fun(Pair<StubBasedPsiElementBase, AstPath> pair) {
return pair.first.getClass().getName();
}
});
LOG.error(this + " of " + getClass() + "; " + psiStrings);
}
for (Pair<StubBasedPsiElementBase, AstPath> pair : bindings) {