[3243] in java-interest
Runtime exceptions and finally
daemon@ATHENA.MIT.EDU (Jeremy Fitzhardinge)
Sat Nov 4 10:08:46 1995
From: jeremy@suede.sw.oz.au (Jeremy Fitzhardinge)
To: java-interest@java.sun.com
Date: Sun, 5 Nov 1995 00:23:35 +1100 (EST)
Hi all,
[ Note: I haven't read the new language spec, so this is based on my
understanding of the old spec; this point may have been clarified. ]
What happens if a thread hits a runtime exception (out of memory, for example)
in a catch block with a corresponding finally block? Will the finally be
invoked? For example:
try {
foo();
} catch (SomeException e) {
this_and_that(bar[e.idx]);
} finally {
something_else();
}
If bar[e.idx] causes an array bound exception, will something_else()
get run?
J
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com