mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better error reporting (relates to IDEA-104310)
This commit is contained in:
@@ -391,7 +391,7 @@ public class JavaBuilder extends ModuleLevelBuilder {
|
||||
return JavaCompilers.ECLIPSE_ID.equalsIgnoreCase(compilerId) || JavaCompilers.ECLIPSE_EMBEDDED_ID.equalsIgnoreCase(compilerId);
|
||||
}
|
||||
|
||||
private void submitAsyncTask(CompileContext context, final Runnable taskRunnable) {
|
||||
private void submitAsyncTask(final CompileContext context, final Runnable taskRunnable) {
|
||||
final TasksCounter counter = COUNTER_KEY.get(context);
|
||||
|
||||
assert counter != null;
|
||||
@@ -402,6 +402,9 @@ public class JavaBuilder extends ModuleLevelBuilder {
|
||||
try {
|
||||
taskRunnable.run();
|
||||
}
|
||||
catch (Throwable e) {
|
||||
context.processMessage(new CompilerMessage(BUILDER_NAME, e));
|
||||
}
|
||||
finally {
|
||||
counter.decTaskCounter();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user