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

Instrumentation failed when import statement has extra semicolon (works under javac)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • long term roadmap
    • 2.6.3
    • Instrumentation
    • None
    • Clover 2.6.3 for Ant
      Java 1.6.0_20
      Linux

    • Severity 3 - Minor

    Description

        • Error(s) occurred and the instrumentation process can't continue.
          [18:15:19]: [javac] com.cenqua.clover.CloverException: /path/to/my/test/src/some/package/MyTest.java:21:1:expecting EOF, found 'import'

      It turns out that one of the import statements had an extra semi-colon, for example:
      import java.util.Collections;;
      ^

      I had not noticed this because javac accepted it and the test executed/passed locally without error. However, Clover's instrumentation crashed and failed on the build server.

      Attachments

        1. java.g.diff
          1 kB
        2. java.g.diff2
          0.5 kB
        3. java.g.diff3
          0.6 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              1279dd9ac894 William Price
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: