You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: