mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 21:55:01 +07:00
ignore anonymous classes when generating constructors
EA-51713 - assert: CreateConstructorMatchingSuperFix$.run
This commit is contained in:
+1
@@ -539,6 +539,7 @@ public class HighlightClassUtil {
|
||||
@NotNull PsiResolveHelper resolveHelper,
|
||||
@NotNull TextRange range,
|
||||
@NotNull PsiClassType[] handledExceptions) {
|
||||
if (aClass instanceof PsiAnonymousClass) return null;
|
||||
PsiClass baseClass = aClass.getSuperClass();
|
||||
if (baseClass == null) return null;
|
||||
PsiMethod[] constructors = baseClass.getConstructors();
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// "Create constructor matching super" "false"
|
||||
public class Test {
|
||||
private Test() {}
|
||||
}
|
||||
|
||||
class Foo {
|
||||
{
|
||||
new Test() {
|
||||
Te<caret>st() {
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user