Re: Improve `finally` block exception handling

2022-04-28 Thread David Holmes
On 21/04/2022 7:30 am, some-java-user-99206970363698485...@vodafonemail.de wrote: Thanks a lot for your feedback! My original message was a bit vague in parts, sorry for that. The proposal consists of the following: 1. Forbidding usage of `break`, `continue`, `yield` and `return` in `finally`

Re: Improve `finally` block exception handling

2022-04-20 Thread some-java-user-99206970363698485155
Thanks a lot for your feedback! My original message was a bit vague in parts, sorry for that. The proposal consists of the following: 1. Forbidding usage of `break`, `continue`, `yield` and `return` in `finally` blocks 2. Adding exceptions as suppressed exceptions: If exception E1 led to

Re: Improve `finally` block exception handling

2022-04-17 Thread David Holmes
Hello, On 18/04/2022 5:43 am, some-java-user-99206970363698485...@vodafonemail.de wrote: Hello, are there any plans to improve exception handling in combination with `finally` blocks? I'm not aware of anything, nor what that anything could realistically be. You make only one suggestion

Improve `finally` block exception handling

2022-04-17 Thread some-java-user-99206970363698485155
Hello, are there any plans to improve exception handling in combination with `finally` blocks? Currently, when a `finally` block does not complete normally, the original exception is silently discarded (as described in the JLS). This behavior is error-prone, not obvious at all, and has been