Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-beta-5
-
None
Description
LineNumber table in generated class file has all line offsets to 0.
Which makes groovy classes imposible to use in any debugger.
Looking on ClassGenerator.java I see following method
protected void onLineNumber(ASTNode statement) {
int number = statement.getLineNumber();
if (number >= 0 && cv != null)
}
it creates a Label but this label remains unresolved.
I think it was intended to be something like this
protected void onLineNumber(ASTNode statement) {
int number = statement.getLineNumber();
if (number >= 0 && cv != null)
}
could you please put it in the CVS.