Issue Details (XML | Word | Printable)

Key: GROOVY-2208
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Jochen Theodorou
Reporter: Eugene Vigdorchik
Votes: 5
Watchers: 2
Operations

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

debug info not generated

Created: 14/Oct/07 05:53 AM   Updated: 08/Oct/08 08:21 PM
Component/s: None
Affects Version/s: 1.1-rc-1
Fix Version/s: 1.5.7, 1.6-beta-2

Time Tracking:
Not Specified

Issue Links:
Duplicate
 


 Description  « Hide
We've recently been getting bug reports on JetGroovy plugin not being able to stop at breakpoints in Groovy. After spending some time with this bug, it seems that groovyc ia not generating LineNumberTable in some cases. For example in this simple script:

<code>
def foo()

{ print "Hello World" }

foo()
</code>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Alex Peters added a comment - 28/Apr/08 10:29 AM
same as: GROOVY-2535

Nestor Urquiza added a comment - 05/Sep/08 02:55 PM
Just in case it helps. In a typical Grails controller the scaffold statement will stop groovy compiler from adding "LineNumberTable" to the final compiled class:
<code>
def scaffold = User
<code>

But the below code will be compiled with line information though:
<code>
def scaffold

{scaffold = User}

<code>


Jochen Theodorou added a comment - 08/Oct/08 08:21 PM
looks like bad line number information from the parser was causing this