Details
-
Suggestion
-
Resolution: Fixed
-
None
-
None
Description
if Clover 1 is in the system or Ant classpath along with Clover 2, users will get non-obvious error:
java.lang.NoSuchMethodError: com.cenqua.clover.util.FileUtils.b(Ljava/lang/String;)Ljava/lang/String;
at com.cenqua.clover.util.b.a(2.0b2-build-682:105)
at com.cenqua.clover.tasks.CloverEnvTask.<clinit>(2.0b2-build-682:28)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:457)
This happens because the static init code in CloverEnvTask assumes that Clover's ClassPathUtil class will be found. to fix, put an outer try/catch in.