Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable declaration in groovy 3 #190

Open
fernando88to opened this issue Oct 11, 2022 · 0 comments
Open

Variable declaration in groovy 3 #190

fernando88to opened this issue Oct 11, 2022 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@fernando88to
Copy link

When I declare in groovy 3 a variable like this

def x

the following message is displayed

Task :cloverInstrumentCodeForTest FAILED [ant:clover-setup] Clover-for-Groovy failed to instrument Groovy source: /home/fernando/IdeaProjects/grailsci/grails-app/controllers/com/fernando/IndexController.groovy java.lang.RuntimeException: Clover-for-Groovy failed to instrument Groovy source: /home/fernando/IdeaProjects/grailsci/grails-app/controllers/com/fernando/IndexController.groovy

Now when I switch to

def x = null

It works perfectly

Tools version
Groovy 3
org.openclover:clover:4.4.1

@marek-parfianowicz marek-parfianowicz added the enhancement New feature or request label Mar 29, 2023
@marek-parfianowicz marek-parfianowicz added this to the 4.8.0 milestone Mar 29, 2023
@marek-parfianowicz marek-parfianowicz modified the milestones: 4.8.0, 4.6.0 Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants