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

merging methods differently ordered in jcov files

XMLWordPrintable

    • jt2.1.6
    • generic
    • generic
    • Not verified



        Name: kbR10066 Date: 08/06/2000



        Merger utility fails to merge jcov data files containing coverage data
        for the same class when the order of its methods in one jcov file is
        different from that order in the other jcov file. For example,
        while merging two jcov data files A.jcov and B.jcov (see below) :

        > java javasoft.sqe.jcov.mergeMain A.jcov B.jcov

        merger produces the following output :

        Different sections for class a

        and coverage data for the class 'a' is not actually merged.
        Here are A.jcov and B.jcov (the order of methods 'main' and '<init>'
        is inversed) :

        ---- A.jcov ----
        JCOV-DATA-FILE-VERSION: 2.0
        CLASS: a [public]
        SRCFILE: /export/home/work/jcov/a.java
        TIMESTAMP: 965622312981
        DATA: B
        #kind line position count
        METHOD: <init>()V [public]
        2 1 13 0
        3 1 13 0
        METHOD: main([Ljava/lang/String;)V [public static]
        1 2 37 1
        3 3 67 1
        ----------------

        ---- B.jcov ----
        JCOV-DATA-FILE-VERSION: 2.0
        CLASS: a [public]
        SRCFILE: /export/home/work/jcov/a.java
        TIMESTAMP: 965622312981
        DATA: B
        #kind line position count
        METHOD: main([Ljava/lang/String;)V [public static]
        1 2 37 1
        3 3 67 1
        METHOD: <init>()V [public]
        2 1 13 0
        3 1 13 0
        ----------------

        When the order of the methods 'main' and '<init>' is the same in both
        files, merger works OK.

        ======================================================================

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: