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

            Michael Andreacchio made changes -
            Resolution New: Won't Fix [ 2 ]
            Status Original: Open [ 1 ] New: Closed [ 6 ]
            Marek Parfianowicz made changes -
            Assignee Original: Marek Parfianowicz [ mparfianowicz ]
            jonah (Inactive) made changes -
            Symptom Severity New: Major [ 14431 ]
            Owen made changes -
            Workflow Original: New Clover Workflow [ 898218 ] New: New Clover Workflow - Restricted [ 1474534 ]
            Piotr Swiecicki made changes -
            Workflow Original: Clover Workflow [ 896573 ] New: New Clover Workflow [ 898218 ]
            Piotr Swiecicki made changes -
            Workflow Original: reviewflow [ 147033 ] New: Clover Workflow [ 896573 ]
            Marek Parfianowicz made changes -
            Fix Version/s New: long term roadmap [ 54394 ]
            Fix Version/s Original: 4.2.x [ 26216 ]
            Marek Parfianowicz made changes -
            Rank New: Ranked higher
            Marek Parfianowicz made changes -
            Assignee Original: Nick [ npellow ] New: Marek Parfianowicz [ mparfianowicz ]
            Marek Parfianowicz made changes -
            Fix Version/s New: 3.1.10 [ 26216 ]
            Fix Version/s Original: someday [ 23593 ]

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

                Created:
                Updated:
                Resolved: