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

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

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

    • Severity 3 - Minor

        • 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.

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

            [CLOV-963] Instrumentation failed when import statement has extra semicolon (works under javac)

            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: Minor [ 14432 ]
            Owen made changes -
            Workflow Original: New Clover Workflow [ 898145 ] New: New Clover Workflow - Restricted [ 1475114 ]
            Piotr Swiecicki made changes -
            Workflow Original: Clover Workflow [ 896468 ] New: New Clover Workflow [ 898145 ]
            Piotr Swiecicki made changes -
            Workflow Original: reviewflow [ 221084 ] New: Clover Workflow [ 896468 ]
            Marek Parfianowicz made changes -
            Fix Version/s New: long term roadmap [ 54394 ]
            Fix Version/s Original: 4.3.x [ 29907 ]
            Marek Parfianowicz made changes -
            Link New: This issue relates to CLOV-1571 [ CLOV-1571 ]
            Marek Parfianowicz made changes -
            Fix Version/s New: 3.2.xx [ 29907 ]
            Fix Version/s Original: 3.2.5 [ 29104 ]

            Marek Parfianowicz added a comment - - edited

            Instrumentation fails for fixes as attached. We'll have a look at this bug after upgrading ANTLR to 4.x (see CLOV-1258)

            Marek Parfianowicz added a comment - - edited Instrumentation fails for fixes as attached. We'll have a look at this bug after upgrading ANTLR to 4.x (see CLOV-1258 )

              Unassigned Unassigned
              1279dd9ac894 William Price
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: