mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-06 03:21:12 +07:00
[java-run] IDEA-351297 Could not direct run classes with main method defined in their super classes as of 2024.1
- behavior before 22 was unspecified, but it supports static for classes (not interfaces) GitOrigin-RevId: cf12f4c46708bdb994604170c11997c2498f84aa
This commit is contained in:
committed by
intellij-monorepo-bot
parent
522a050f63
commit
2c28b8d64f
@@ -61,7 +61,7 @@ public final class PsiMethodUtil {
|
||||
if (containingClass.isInterface() && !instanceMainMethodsEnabled(containingClass)) {
|
||||
continue;
|
||||
}
|
||||
if (mainMethod.hasModifierProperty(PsiModifier.STATIC) && !inheritedStaticMainEnabled(containingClass)) {
|
||||
if (containingClass.isInterface() && mainMethod.hasModifierProperty(PsiModifier.STATIC) && !inheritedStaticMainEnabled(containingClass)) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user