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

JCOV: type=b option leads to invalid coverage file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • jcov_1.4
    • jcov_1.4
    • tools
    • beta3
    • generic
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: