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

Compilation error with Clover for ANT but Eclipse Clover plugin does not

    • 1
    • Severity 2 - Major

      The attached example works if one is instrumenting using the Eclipse Clover plugin.
      However, it failed when building the project with Ant. The example of the build error:

      build:
          [javac] Compiling 1 source file to <path>/workspace/TestProject/build
         [clover] Clover Version 2.3.2, built on July 15 2008 (build-732)
         [clover] Loaded from: <path>/clover-ant-2.3.2/lib/clover.jar
         [clover] Creating new database at '<path>/workspace/TestProject/.clover/clover2_3_2.db'.
         [clover] Processing files at 1.6 source level.
         [clover] Clover all over. Instrumented 1 file (1 package).
          [javac] /tmp/clover21186.tmp/CloverConstInitTest.java:17: variable l_lStart might not have been initialized
          [javac]                     __CLR2_3_200fmewemkh.R.E[10]++;System.out.println("l_lStart is definitely initialized here..., diff is " + (l_lEnd - l_lStart) + " ms");
          [javac]                                                                                                                                          ^
          [javac] 1 error
      
      BUILD FAILED
      <path>/workspace/TestProject/build.xml:22: Compile failed; see the compiler error output for details.
      

            [CLOV-355] Compilation error with Clover for ANT but Eclipse Clover plugin does not

            No work has yet been logged on this issue.

              Unassigned Unassigned
              tcheah Tony Cheah Tong Nyee [Atlassian]
              Affected customers:
              1 This affects my team
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: