mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-06 05:10:22 +07:00
IDEA-67859
This commit is contained in:
@@ -95,7 +95,7 @@ public final class PsiUtil extends PsiUtilCore {
|
||||
|
||||
@NotNull
|
||||
public static JavaResolveResult getAccessObjectClass(@NotNull PsiExpression expression) {
|
||||
if (expression instanceof PsiSuperExpression || expression instanceof PsiThisExpression) return JavaResolveResult.EMPTY;
|
||||
if (expression instanceof PsiSuperExpression) return JavaResolveResult.EMPTY;
|
||||
PsiType type = expression.getType();
|
||||
if (type instanceof PsiClassType) {
|
||||
return ((PsiClassType)type).resolveGenerics();
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
class Outer {
|
||||
private void foo() {}
|
||||
class Inner extends Outer {
|
||||
{
|
||||
this.<error descr="'foo()' has private access in 'Outer'">foo</error>();
|
||||
foo();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -194,6 +194,7 @@ public class GenericsHighlightingTest extends LightDaemonAnalyzerTestCase {
|
||||
public void testMethodCallParamsOnRawType() { doTest5(false); }
|
||||
public void testIDEA98421() { doTest5(false); }
|
||||
public void testErasureTypeParameterBound() { doTest5(false); }
|
||||
public void testThisAsAccessObject() { doTest5(false); }
|
||||
|
||||
public void testJavaUtilCollections_NoVerify() throws Exception {
|
||||
PsiClass collectionsClass = getJavaFacade().findClass("java.util.Collections", GlobalSearchScope.moduleWithLibrariesScope(getModule()));
|
||||
|
||||
Reference in New Issue
Block a user