--- 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")) {