hudi
hudi

Reputation: 16555

How to report bug in groovy

these piece of code:

if (false)
    int number = 0

1..3.each{
    println number
}

return bug:

BUG! exception in phase 'class generation' in source unit 'Script7.groovy' tried to get a variable with the name number as stack variable, but a variable with this name was not created

How I can report this bug to developer of groovy to fix it ? I am using version 1.8.0

Upvotes: 1

Views: 576

Answers (1)

tim_yates
tim_yates

Reputation: 171194

You can report Groovy bugs on their public JIRA

Posting to the groovy-user mailing list is probably a good idea too, explaining the issue and with a link to the JIRA report you created.

Btw: This also fails on Groovy 1.8.6 (it's always worth checking the latest version of Groovy, as it might have been fixed)


I guess even with the fix in place, this will still fail (but not with a BUG! failure). To get it to work, you would need to do:

int number = 1

if (false)
    number = 0

(1..3).each{
    println number
}

Upvotes: 3

Related Questions