8057076: Correct exception message in CertAndKeyGen.java
authorcoffeys
Tue, 02 Sep 2014 22:23:04 +0100
changeset 26361 869d2905615d
parent 26360 697f70835528
child 26362 b1e9b551e10a
8057076: Correct exception message in CertAndKeyGen.java Reviewed-by: mullan
jdk/src/java.base/share/classes/sun/security/tools/keytool/CertAndKeyGen.java
--- a/jdk/src/java.base/share/classes/sun/security/tools/keytool/CertAndKeyGen.java	Tue Sep 02 14:11:38 2014 -0700
+++ b/jdk/src/java.base/share/classes/sun/security/tools/keytool/CertAndKeyGen.java	Tue Sep 02 22:23:04 2014 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1996, 2012, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -158,8 +158,8 @@
         // publicKey's format must be X.509 otherwise
         // the whole CertGen part of this class is broken.
         if (!"X.509".equalsIgnoreCase(publicKey.getFormat())) {
-            throw new IllegalArgumentException("publicKey's is not X.509, but "
-                    + publicKey.getFormat());
+            throw new IllegalArgumentException("Public key format is "
+                + publicKey.getFormat() + ", must be X.509");
         }
     }