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

VersionInfo generates incorrect output

XMLWordPrintable

    • generic
    • generic



      Name: dkR10031 Date: 07/15/2003



      Current edition of the JCOV User Guide contains
      in the section "B.7 VersionInfo Utility Syntax"
      description of the following feature:
      "Usage:

      java com.sun.tdk.jcov.tools.VersionInfo

      After running this command, a list of JCov classes
      annotated with version information will be
      printed to stdout".

      However, current linux implementation contains
      'INVALID CLASS FORMAT' strings instead of
      version information.

      To reproduce this bug please run the test below.
      This test runs VersionInfo Utility and searches
      lines without version information using standard
      'grep' command line utility:
      -------------------------- script begin ------------------------------
      uname -a
      export TESTED_JAVA=/net/novo172/export/home/java/dest/jdk1.4.0-b92/linux-i386/bin/java
      export JCOV_JAR=/export/home/gary/QA.JCOV/ws-control/test.linux-x86/lib/jcov.jar
      export CLASS_VINFO=com.sun.tdk.jcov.tools.VersionInfo

      # Setting the classpath
      CLASSPATH=${JCOV_JAR}:.
      export CLASSPATH

      # Executing the VersionInfo
      $TESTED_JAVA -showversion $CLASS_VINFO | grep 'INVALID CLASS FORMAT'
      -------------------------- script end --------------------------------
      -------------------------- script output begin -----------------------
      Linux linux-11 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 i386
      GNU/Linux
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)

          com.sun.tdk.jcov.gui.browser.awt.ClassTableFrame INVALID CLASS FORMAT
          com.sun.tdk.jcov.gui.browser.awt.MethodTableFrame INVALID CLASS FORMAT
          com.sun.tdk.jcov.gui.browser.awt.SourceTableFrame INVALID CLASS FORMAT
          com.sun.tdk.jcov.gui.browser.awt.TableFrame INVALID CLASS FORMAT
          com.sun.tdk.jcov.gui.browser.awt.TestTableFrame INVALID CLASS FORMAT
      -------------------------- script output end -------------------------
      ======================================================================

            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: