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

Allow duplicated classes and loosen source file name limitation in data file

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      jt2.1.6
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description



      Name: kbR10066 Date: 10/01/2001


      Some of Jcov utilities (report generator, merger) enforces too strict limitations
      on the jcov data file (s) structure being processed. Namely, it is not allowed for a jcov data
      file to contain a duplicated class coverage data, and source file name can't contain
      some characters allowed by most file systems (e.g. '[' or space character).

      To reproduce, run the merger utility on the following data file below (a.jcov):

      > java -cp jcov.jar javasoft.sqe.jcov.MergerMain a.jcov

      Report generator will report an error. The correct behaviour would be:
      1. to allow any chracters other than <end-of-line>s in the source file name
      2. When a duplicated class coverage data is encountered, it should be merged
         with the existing data for this class.

      --- a.jcov ---
      JCOV-DATA-FILE-VERSION: 2.0
      CLASS: java/awt/geom/RectIterator []
      SRCFILE: [RectIter%%^^^ato].java
      TIMESTAMP: 1000158280500
      DATA: C
      #kind start end count
      METHOD: <init>(Ljava/awt/geom/Rectangle2D;Ljava/awt/geom/AffineTransform;)V []
      1 27701 36869 15
      3 28681 28697 15
      METHOD: getWindingRule()I [public]
      1 45089 47109 6
      3 46089 46109 6
      CLASS: com/sun/image/codec/jpeg/JPEGCodec [public]
      SRCFILE: JPEGCodec.java
      TIMESTAMP: 1000162918092
      DATA: C
      #kind start end count
      METHOD: <init>()V [private]
      1 49181 49183 0
      CLASS: java/awt/geom/RectIterator []
      SRCFILE: [RectIter%%^^^ato].java
      TIMESTAMP: 1000158280500
      DATA: C
      #kind start end count
      METHOD: getWindingRule()I [public]
      1 45089 47109 6
      3 46089 46109 6
      METHOD: <init>(Ljava/awt/geom/Rectangle2D;Ljava/awt/geom/AffineTransform;)V []
      1 27701 36869 15
      3 28681 28697 15
      --- end of a.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: