mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
do not self-wrap ProcessCanceledException to fix EA-92422 - AUCRRAE: ReadMostlyRWLock.throwIfImpatient
This commit is contained in:
@@ -23,11 +23,6 @@ public class DiffTooBigException extends ProcessCanceledException {
|
||||
public DiffTooBigException() {
|
||||
}
|
||||
|
||||
public DiffTooBigException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getMessage() {
|
||||
return MESSAGE;
|
||||
|
||||
@@ -23,5 +23,8 @@ public class ProcessCanceledException extends RuntimeException implements Contro
|
||||
|
||||
public ProcessCanceledException(@NotNull Throwable cause) {
|
||||
super(cause);
|
||||
if (cause instanceof ProcessCanceledException) {
|
||||
throw new IllegalArgumentException("Must not self-wrap ProcessCanceledException: " + cause);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ final class ObjectNode<T> {
|
||||
myTree.fireExecuted(myObject);
|
||||
}
|
||||
catch (ProcessCanceledException e) {
|
||||
throw new ProcessCanceledException(e);
|
||||
throw e;
|
||||
}
|
||||
catch (Throwable e) {
|
||||
LOG.error(e);
|
||||
|
||||
Reference in New Issue
Block a user