handle unresolvable catch types more appropriately when unwinding

This commit is contained in:
Joel Dice 2007-07-24 20:02:25 -06:00
parent 6b0792c881
commit 38a982c7dd

View File

@ -2154,9 +2154,14 @@ run(Thread* t)
PROTECT(t, eht);
catchType = resolveClass(t, catchType);
eh = exceptionHandlerTableBody(t, eht, i);
exception = e;
if (catchType) {
eh = exceptionHandlerTableBody(t, eht, i);
exception = e;
} else {
// can't find what we're supposed to catch - move on.
continue;
}
}
if (catchType == 0 or instanceOf(t, catchType, exception)) {