From 65360411bb3600d53ddb313fbc013152c9c63105 Mon Sep 17 00:00:00 2001 From: Weijun Wang Date: Wed, 1 Jun 2016 15:35:38 +0800 Subject: [PATCH] 8152108: Correct jarsigner warning message about missing timestamp Reviewed-by: mullan --- .../share/classes/sun/security/tools/jarsigner/Resources.java | 4 ++-- jdk/test/sun/security/tools/jarsigner/warnings/Test.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jdk/src/jdk.jartool/share/classes/sun/security/tools/jarsigner/Resources.java b/jdk/src/jdk.jartool/share/classes/sun/security/tools/jarsigner/Resources.java index 7afe39aeada..ad7bebff1a9 100644 --- a/jdk/src/jdk.jartool/share/classes/sun/security/tools/jarsigner/Resources.java +++ b/jdk/src/jdk.jartool/share/classes/sun/security/tools/jarsigner/Resources.java @@ -247,9 +247,9 @@ public class Resources extends java.util.ListResourceBundle { {"This.jar.contains.entries.whose.certificate.chain.is.not.validated.reason.1", "This jar contains entries whose certificate chain is not validated. Reason: %s"}, {"no.timestamp.signing", - "No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (%1$tY-%1$tm-%1$td) or after any future revocation date."}, + "No -tsa or -tsacert is provided and this jar is not timestamped. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (%1$tY-%1$tm-%1$td)."}, {"no.timestamp.verifying", - "This jar contains signatures that does not include a timestamp. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (%1$tY-%1$tm-%1$td) or after any future revocation date."}, + "This jar contains signatures that does not include a timestamp. Without a timestamp, users may not be able to validate this jar after the signer certificate's expiration date (%1$tY-%1$tm-%1$td)."}, {"Unknown.password.type.", "Unknown password type: "}, {"Cannot.find.environment.variable.", "Cannot find environment variable: "}, diff --git a/jdk/test/sun/security/tools/jarsigner/warnings/Test.java b/jdk/test/sun/security/tools/jarsigner/warnings/Test.java index ce16d4de381..e9dd7e3037f 100644 --- a/jdk/test/sun/security/tools/jarsigner/warnings/Test.java +++ b/jdk/test/sun/security/tools/jarsigner/warnings/Test.java @@ -118,13 +118,13 @@ public abstract class Test { + "and this jar is not timestamped. " + "Without a timestamp, users may not be able to validate this jar " + "after the signer certificate's expiration date " - + "(%1$tY-%1$tm-%1$td) or after any future revocation date."; + + "(%1$tY-%1$tm-%1$td)."; static final String NO_TIMESTAMP_VERIFYING_WARN_TEMPLATE = "This jar contains signatures that does not include a timestamp. " + "Without a timestamp, users may not be able to validate this jar " + "after the signer certificate's expiration date " - + "(%1$tY-%1$tm-%1$td) or after any future revocation date."; + + "(%1$tY-%1$tm-%1$td)."; static final String NOT_YET_VALID_CERT_SIGNING_WARNING = "The signer certificate is not yet valid.";