jdk/src/share/classes/sun/security/tools/JarSigner.java
changeset 7524 ec12e1e6fa20
parent 7179 4afb81e50183
child 7525 16d2b5e6517a
--- a/jdk/src/share/classes/sun/security/tools/JarSigner.java	Sun Dec 05 16:08:01 2010 -0800
+++ b/jdk/src/share/classes/sun/security/tools/JarSigner.java	Mon Dec 06 10:46:18 2010 +0800
@@ -723,7 +723,7 @@
                         if (signatureRelated(name)) {
                             // Entries inside META-INF and other unsigned
                             // entries are grouped separately.
-                            label = "-" + label.substring(1);
+                            label = "-" + label;
                         }
 
                         // The label finally contains 2 parts separated by '|':
@@ -752,7 +752,7 @@
                     List<String> files = s.getValue();
                     String key = s.getKey();
                     if (key.charAt(0) == '-') { // the signature-related group
-                        key = ' ' + key.substring(1);
+                        key = key.substring(1);
                     }
                     int pipe = key.indexOf('|');
                     if (verbose.equals("all")) {