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

-jar sigtest.jar does not work without -static

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • st4.0
    • tools
    • None
    • x86
    • solaris_11

      Running the sigtest tool to test the signatures in a library jar file fails to find the classes in the jar file if -static is not used. For example:

      ${JAVA_HOME}/bin/java --add-modules java.se.ee \
              -jar sigtest.jar test \
              -classpath sigtest.jar:javax.mail.jar \
              -Package javax.mail \
              -FileName tests/javax.mail_1.6_java_9.sig

      Produces this output:

      SignatureTest report
      Base version:
      Tested version:
      Check mode: src [throws normalized]
      Constant checking: on


      Missing Classes
      ---------------

      javax.mail.Address
      javax.mail.AuthenticationFailedException
      ...

      The attached zip file reproduces the problem.

            vrudomet Victor Rudometov
            bshannon Bill Shannon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: