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

Sigtest works incorrectly when used with pre-generated signature files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • st4.0
    • st4.0
    • tools
    • b05
    • Verified

      Given the following source:

      ---------------------------
      package temp;

      import java.lang.annotation.Target;
      import java.lang.annotation.ElementType;

      public @Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER }) @interface Test {}
      ---------------------------

      The result of sigtest command:

      >/net/fury.ru.oracle.com/export/users/dbessono/jck9-jigsaw/jdk/build/solaris-sparcv9/jdk/bin/java -jar /java/re/sigtest/4.0/nightly/binaries/latest/sigtest-4.0/lib/sigtestdev.jar setup -fileName a.sig -classpath /net/fury/export/users/vrudomet/9/api/tests/api/signaturetest/sig/javase9_java.sig:/net/fury/export/users/vrudomet/9/t -static -NonClosedFile -xjake -package temp

      The result is:

      CLSS public abstract interface !annotation temp.Test
       anno 0 java.lang.annotation.Target(null value=[TYPE_USE, TYPE_PARAMETER])
      intf java.lang.annotation.Annotation

      The expected result is:

      CLSS public abstract interface !annotation temp.Test
       anno 0 java.lang.annotation.Target(java.lang.annotation.ElementType[] value=[TYPE_USE, TYPE_PARAMETER])
      intf java.lang.annotation.Annotation


      (java.lang.annotation.ElementType[] instead of null)

      All types are present in javase9_java.sig.

            ersh Mikhail Ershov (Inactive)
            vrudomet Victor Rudometov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: