Detect and report classpath problems early

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Fixed
    • 2 final
    • Component/s: None
    • None

      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.

              Assignee:
              Unassigned
              Reporter:
              BrendanA
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: