fixed eval of static methods with a qualifier - better fix

This commit is contained in:
Egor.Ushakov
2017-02-09 16:35:41 +03:00
parent 041927e494
commit 4157ca0764
@@ -100,7 +100,9 @@ public class JavaEditorTextProviderImpl implements EditorTextProvider {
parent = pparent;
}
else if (pparent instanceof PsiReferenceExpression) {
return findExpression(pparent, allowMethodCalls);
if (((PsiReferenceExpression)parent).resolve() instanceof PsiClass) {
return findExpression(pparent, allowMethodCalls);
}
}
if (allowMethodCalls || !DebuggerUtils.hasSideEffects(parent)) {
expression = parent;