Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.5.1
-
Fix Version/s: 1.5.7, 1.6-beta-2
-
Component/s: bytecode, class generator
-
Labels:None
-
Number of attachments :
Description
We observed that in come code produced by Groovy compiler there are missing line number attributes. Consider example:
~~~~~~~~~~~~~~~~~~
class DependencyManager {
Map artifactDescriptors = []
}
~~~~~~~~~~~~~~~~~~
In generated .class-file LineNumbertable attribute for initial code of DependencyManager class is absent. In same time if we use class initializer:
~~~~~~~~~~~~~~~~~~
class DependencyManager {
}
~~~~~~~~~~~~~~~~~~
we will see correct line number table:
LineNumberTable:
line 2: 108
line 3: 108
This annoying discrepancy complicates debugger's work.
Issue Links
- duplicates
-
GROOVY-2208
debug info not generated
-
I fixed that at last partially