Uploaded image for project: 'Clover'
  1. Clover
  2. CLOV-37

Detect and report classpath problems early

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • 2 final
    • None
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: