ajwang / groovypptest

Automatically exported from code.google.com/p/groovypptest
0 stars 0 forks source link

Incorrect source line mapping for if inside for #401

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
@Typed
class Test {
  public static void main(String[] args) {
    for (c in [1,2]) {
      if (args) {
        println 'hello'
      } else {
        println 'goodbye'
      }
    }
  }
}
-------
Debug this code. Stop on a breakpoint on the first line (for). Step over it. 
You should find yourself on 'if (args)', but highlighted is the line with 
'else'. Similarly, breakpoints put on 'if' line are ignored. Doesn't happen in 
plain Groovy

Original issue reported on code.google.com by gromop...@gmail.com on 13 Oct 2011 at 8:41