Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7900555

JCOV: type=b option leads to invalid coverage file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: jcov_1.4
    • Fix Version/s: jcov_1.4
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description



      Name: kbR10066 Date: 09/18/2001


      When 'type=b' option is passed to the Jcov agent, it does not report
      any errors and produces invalid coverage data file.

      To reproduce, compile the following source file x.java with -Xjcov switch:

      > <JDK1.4.0beta-b78>/solsparc/bin/javac -Xjcov x.java

      --- x.java ---
      public class x {
      public static void main(String[] args) {
      System.out.println("Hello world!");
      }
      }
      --- end of x.java ---

      then run it with Jcov agent enabled:

      > <JDK1.4.0beta-b78>/solsparc/bin/java -XX:+EnableJVMPIInstructionStartEvent -Xrunjcov:type=b -cp . x

      This will produce java.jcov file with many irrelevant classes containing format errors:

      --- java.jcov ---
      . . .
      CLASS: java/net/ContentHandler [public abstract]
      SRCFILE: ContentHandler.java
      TIMESTAMP: 0
      DATA: b
      #kind line position count
      METHOD: <init>()V [public]
      METHOD: getContent(Ljava/net/URLConnection;[Ljava/lang/Class;)Ljava/lang/Object; [public]
      . . .
      --- end of java.jcov ---
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            afedorch Alexey Fedorchenko (Inactive)
            Reporter:
            klooney Kevin Looney (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: