Description
I would expect the following code to print `caughtt`:
```
groovy -e 'try { try
finally
{ 1 / 0 }} catch (e)
{ println "caughtt" }'
```
But instead, it prints:
```
Caught: java.lang.ArithmeticException: Division by zero
java.lang.ArithmeticException: Division by zero
at script_from_command_line.run(script_from_command_line:1)
```
Why is the exception, thrown by the `finally`, not being caught by the outer try/catch?
Attachments
Issue Links
- breaks
-
GROOVY-8229 nested try-catch-finally handling inside Closures generates wrong bytecode
- Closed
- links to