Closed yloiseau closed 4 years ago
When nesting try blocks, we can't try...catch in the finally clause. Given
try
try...catch
finally
try { println("try") } finally { try { println("finally") } catch(e) { println("in catch") } }
compilation is OK, but execution fails with
java.lang.VerifyError: Instruction type does not match stack map
that seems to indicate an error in the generated bytecode.
Other combination of nesting seems OK.
When nesting
try
blocks, we can'ttry...catch
in thefinally
clause. Givencompilation is OK, but execution fails with
that seems to indicate an error in the generated bytecode.
Other combination of nesting seems OK.