mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
do not run application over non-physical main method (IDEA-57237)
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ public class ApplicationConfigurationProducer extends JavaRuntimeConfigurationPr
|
||||
location = JavaExecutionUtil.stepIntoSingleClass(location);
|
||||
if (location == null) return null;
|
||||
final PsiElement element = location.getPsiElement();
|
||||
|
||||
if (!element.isPhysical()) return null;
|
||||
PsiElement currentElement = element;
|
||||
PsiMethod method;
|
||||
while ((method = findMain(currentElement)) != null) {
|
||||
|
||||
Reference in New Issue
Block a user