mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
handle unresolvable catch types more appropriately when unwinding
This commit is contained in:
parent
6b0792c881
commit
38a982c7dd
@ -2154,9 +2154,14 @@ run(Thread* t)
|
|||||||
|
|
||||||
PROTECT(t, eht);
|
PROTECT(t, eht);
|
||||||
catchType = resolveClass(t, catchType);
|
catchType = resolveClass(t, catchType);
|
||||||
eh = exceptionHandlerTableBody(t, eht, i);
|
|
||||||
|
|
||||||
|
if (catchType) {
|
||||||
|
eh = exceptionHandlerTableBody(t, eht, i);
|
||||||
exception = e;
|
exception = e;
|
||||||
|
} else {
|
||||||
|
// can't find what we're supposed to catch - move on.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (catchType == 0 or instanceOf(t, catchType, exception)) {
|
if (catchType == 0 or instanceOf(t, catchType, exception)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user