This repository contains source code of OpenClover Core as well as its integrations: Clover-for-Ant, Clover-for-Eclipse and Clover-for-IDEA plugins. Sources are licensed under Apache 2.0 license.
I have a multimodule maven project composed by ModuleA and ModuleB. ModuleA is a dependency required by ModuleB.
ModuleA contains this class:
`public class ClassA{
private Long attribute;
public ClassA() {
super();
}
public ClassA(Long value) {
super();
this.attribute = value;
}
}`
ModuleB contains this class:
`public class ClassB{
public void methodB() {
...
ClassA classA = new ClassA(1L);
...
}
}`
When i generate clover report using maven like that:
mvn clover:instrument clover:aggregate clover:clover
i have this compilation error while compiling ModuleB
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project xxx: Compilation failure [ERROR] constructor ClassA in class ClassA cannot be applied to given types; [ERROR] required: no arguments [ERROR] found: long [ERROR] reason: actual and formal argument lists differ in length
the error disappear if I use the default constructor. It seems a problem due to code instrumentation as the code builds correctly when generating the deploy package.
I have a multimodule maven project composed by ModuleA and ModuleB. ModuleA is a dependency required by ModuleB.
ModuleA contains this class:
`public class ClassA{
}`
ModuleB contains this class:
`public class ClassB{
}`
When i generate clover report using maven like that:
mvn clover:instrument clover:aggregate clover:clover i have this compilation error while compiling ModuleB
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project xxx: Compilation failure [ERROR] constructor ClassA in class ClassA cannot be applied to given types; [ERROR] required: no arguments [ERROR] found: long [ERROR] reason: actual and formal argument lists differ in length
the error disappear if I use the default constructor. It seems a problem due to code instrumentation as the code builds correctly when generating the deploy package.