You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (JIRA)" <ji...@apache.org> on 2019/07/19 14:10:00 UTC

[jira] [Commented] (GROOVY-9199) Code in finally block is ignored in IntelliJ IDEA debugger

    [ https://issues.apache.org/jira/browse/GROOVY-9199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16888898#comment-16888898 ] 

Eric Milles commented on GROOVY-9199:
-------------------------------------

Recent changes and open issues for debug stepping: GROOVY-9076, GROOVY-8772, GROOVY-8742, GROOVY-7647

> Code in finally block is ignored in IntelliJ IDEA debugger
> ----------------------------------------------------------
>
>                 Key: GROOVY-9199
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9199
>             Project: Groovy
>          Issue Type: Improvement
>          Components: bytecode
>    Affects Versions: 2.5.7
>            Reporter: Andres Almiray
>            Priority: Major
>         Attachments: example_2_5_4.txt, example_2_5_7.txt
>
>
> A single line of code in a {{finally}} block is ignored. Given then following example code
> {code:java}
> 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()
>     }
> }
> {code}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)