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

bad timestamp for javac1.2-compiled classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jcov_1.1
    • jcov_1.1
    • tools
    • 1.1
    • x86
    • windows_nt
    • Verified



      Name: kbR10066 Date: 02/26/2003


      JCov agent on Windows produces coverage files with invalid timestamp
      for classes compiled by JDK1.2 javac.

      To reproduce (a.java is a simple "hello world" program):

      > $JDK12/win32/bin/javac -Xjcov a.java
      > $JDK13/win32/bin/java -Xrunjcov:t=m,i=a -cp . a
      > cat java.jcov
      JCOV-DATA-FILE-VERSION: 2.0
      CLASS: a [public]
      SRCFILE: C:\a.java
      TIMESTAMP: 243
      DATA: M
      #kind line position count
      METHOD: <init>()V [public]
      1 1 0 0
      METHOD: main([Ljava/lang/String;)V [public static]
      1 3 0 1

      The timestamp has invalid value 243.
      ======================================================================

            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: