mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
throw on invokeAndWait in read action to really prevent deadlocks like IDEA-168847
This commit is contained in:
+1
-1
@@ -682,7 +682,7 @@ public class ApplicationImpl extends PlatformComponentManagerImpl implements App
|
||||
}
|
||||
|
||||
if (holdsReadLock()) {
|
||||
LOG.error("Calling invokeAndWait from read-action leads to possible deadlock.");
|
||||
throw new IllegalStateException("Calling invokeAndWait from read-action leads to possible deadlock.");
|
||||
}
|
||||
|
||||
LaterInvocator.invokeAndWait(myTransactionGuard.wrapLaterInvocation(runnable, modalityState), modalityState);
|
||||
|
||||
Reference in New Issue
Block a user