-
Bug
-
Resolution: Won't Fix
-
Medium
-
2.3.2
-
None
-
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.