JDK-7194449 : String resources for Key Tool and Policy Tool should be in their respective packages
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-08-28
  • Updated: 2020-01-22
  • Resolved: 2012-10-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 Other
8 b63Fixed openjdk7uFixed
Related Reports
Relates :  
Relates :  
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.

Comments
just verified the source code. hard to verify function,no environment.
31-10-2013

"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.
06-08-2013

Stephen, Can you help to provide more detail about how to verify this bug? Thanks Kevin
05-08-2013

This work is also important to allow keytool be included in the base module (and the most compact profile).
14-10-2012

EVALUATION See description.
13-09-2012