Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.7
-
None
Description
A single line of code in a finally block is ignored. Given then following example code
class Example { static void t(boolean t) { if (t) { throw new RuntimeException(); } } static void example() { try { t(true) // <- break point here! } finally { t(false) } } static void main(String[] args) { example() } }
When you run this code in the IntelliJ IDEA debugger makes the t(false) appears as it's not executed. The line numbers are misleading.
Code works in 2.5.4 but it's broken since 2.5.5. Please see attached bytecode dumps.
Problem identified by godin (JaCoCo). Observed and reported at JCrete 2019 hackfest.
Attachments
Attachments
Issue Links
- links to