Sigtest works incorrectly when used with pre-generated signature files

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • st4.0
    • Affects Version/s: st4.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: