Issue 401 in groovypptest: Incorrect source line mapping for if inside for

1 view
Skip to first unread message

groovy...@googlecode.com

unread,
Oct 13, 2011, 4:42:18 PM10/13/11
to groovyp...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 401 by gromop...@gmail.com: Incorrect source line mapping for if
inside for
http://code.google.com/p/groovypptest/issues/detail?id=401

@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

Reply all
Reply to author
Forward
0 new messages