[
https://issues.apache.org/jira/browse/GROOVY-12752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-12752.
----------------------------------
Fix Version/s: 7.0.0-alpha-1
6.0.1
Resolution: Fixed
https://github.com/apache/groovy/commit/50f62cb5cb52ec03d95c24c15c2ed07dceda4cd2
> write line for script block exit
> --------------------------------
>
> Key: GROOVY-12752
> URL: https://issues.apache.org/jira/browse/GROOVY-12752
> Project: Groovy
> Issue Type: Bug
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Fix For: 7.0.0-alpha-1, 6.0.1
>
>
> Consider the following:
> {code:groovy}
> boolean flag = false
> if (flag) {
> println 'x'
> } // last line; should step here, not the line above
> {code}
> When this is the body of a script, the debugger still steps from "if
> \(flag\)" to "println" instead of stepping to the "}" line. This is because
> the block statement for the script has no line number information.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)