Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8028586

sun.security.tools.JarSigner does not exist anymore

    XMLWordPrintable

    Details

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b114)

      ADDITIONAL OS VERSION INFORMATION :
      Windows 8 pro
      Linux 2.6.32-358.23.2.el6.i686 (RHEL6, Centos6)


      A DESCRIPTION OF THE PROBLEM :
      In JDK8 JarSigner has moved from sun.security.tools.JarSigner to its own package sun.security.tools.jarsigner as part of JDK-7194449

      It would be reasonable if there would be some forwarding class to preserve compatibility for all apps that rely on this class.


      REGRESSION. Last worked in version 7u45

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      write code:

      final sun.security.tools.JarSigner signer = new sun.security.tools.JarSigner();
      signer.run(args);

      compile it.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      compilation succeeds.
      ACTUAL -
      compile fails


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      JarSignerUtil.java:[25,26] cannot find symbol
      symbol: class JarSigner
      location: package sun.security.tools

      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Using reflection it is possible to have code that works on JDK8 and older ones.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: