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

-jar sigtest.jar does not work without -static

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: st4.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • CPU:
      x86
    • OS:
      solaris_11

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated: