Issue Details (XML | Word | Printable)

Key: GROOVY-2535
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Jochen Theodorou
Reporter: Ilya Sergey
Votes: 4
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
groovy

lost LineNumberTable in groovyc-produced bytecode

Created: 24/Jan/08 06:56 AM   Updated: 08/Oct/08 08:21 PM
Component/s: bytecode, class generator
Affects Version/s: 1.5.1
Fix Version/s: 1.5.7, 1.6-beta-2

Time Tracking:
Not Specified

Issue Links:
Duplicate
 


 Description  « Hide
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 {

{ Map artifactDescriptors = [] }

}
~~~~~~~~~~~~~~~~~~
we will see correct line number table:

LineNumberTable:
line 2: 108
line 3: 108

This annoying discrepancy complicates debugger's work.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jochen Theodorou added a comment - 08/Oct/08 08:21 PM
I fixed that at last partially