Project: clover
Issue CLOV-1062: Clover-for-Groovy failed to instrument Groovy sources having methods overridden by metaClass 
We were able to get clover report from maven-clover2-plugin even for groovy classes successfully. However when we try to override a method via Groovy metaclass in some tests, clover plugin fails on these tests. We simply added the following lines to our tests. MyClass.metaClass.myMethod = { return "called" } Clover plugin gave the following error. Exception in thread "main" BUG! exception in phase 'instruction selection' in source unit Test.groovy Clover-for-Groovy failed to instrument Groovy source: Test.groovy I attached the full stacktrace for further details.
Story points: 13