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

String resources for Key Tool and Policy Tool should be in their respective packages

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 8
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b63
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        The sun.security.util.ResourceBundle* classes have the error messages for the certificate APIs and the strings for the KeyTool and PolicyTool, the JarSigner has already had it strings moved out into its package, the same should be done for the other tools. This would could possibily save an embbedded SE customer 320K because they would not normally install the tools on a device.

        The KeyTool is in the same package as the JarSigner, the PolicyTool is in it own package, the KeyTool should have its own package so we can have each tool included or excluded on their own.

          Issue Links

            Activity

            Hide
            sflores Stephen Flores added a comment -
            BT2:EVALUATION

            See description.
            Show
            sflores Stephen Flores added a comment - BT2:EVALUATION See description.
            Hide
            alanb Alan Bateman added a comment -
            This work is also important to allow keytool be included in the base module (and the most compact profile).
            Show
            alanb Alan Bateman added a comment - This work is also important to allow keytool be included in the base module (and the most compact profile).
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fe28e0b035e7
            User: alanb
            Date: 2012-10-14 22:07:28 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk8/tl/jdk/rev/fe28e0b035e7 User: alanb Date: 2012-10-14 22:07:28 +0000
            Hide
            zailiu Kevin Liu (Inactive) added a comment -
            Stephen,
            Can you help to provide more detail about how to verify this bug?

            Thanks

            Kevin
            Show
            zailiu Kevin Liu (Inactive) added a comment - Stephen, Can you help to provide more detail about how to verify this bug? Thanks Kevin
            Hide
            sflores Stephen Flores added a comment -
            "verify this bug" could mean verify that this is a bug in a previous version or verify the changes for this bug, so I will give both answers.

            If sun/security/util/Resources.class in rt.jar is over 300k it means there is a modularity bug when a mobile OEM customer removes the keytool and policytool classes from the JRE for their mobile device.

            To verify the changes look for sun/security/tools/(policytool,keytool)/Resources.class in rt.jar (full profile). To verify the changes did not break the tools, on any platform (I used Ubuntu) run the sun/security/(pkcs12,tools,util,x509) jprt tests and the run both tools on the command line and there should be no resource exceptions.
            Show
            sflores Stephen Flores added a comment - "verify this bug" could mean verify that this is a bug in a previous version or verify the changes for this bug, so I will give both answers. If sun/security/util/Resources.class in rt.jar is over 300k it means there is a modularity bug when a mobile OEM customer removes the keytool and policytool classes from the JRE for their mobile device. To verify the changes look for sun/security/tools/(policytool,keytool)/Resources.class in rt.jar (full profile). To verify the changes did not break the tools, on any platform (I used Ubuntu) run the sun/security/(pkcs12,tools,util,x509) jprt tests and the run both tools on the command line and there should be no resource exceptions.
            Hide
            zailiu Kevin Liu (Inactive) added a comment -
            just verified the source code. hard to verify function,no environment.
            Show
            zailiu Kevin Liu (Inactive) added a comment - just verified the source code. hard to verify function,no environment.

              People

              • Assignee:
                sflores Stephen Flores
                Reporter:
                sflores Stephen Flores
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: