changeset 3753:fa9d7e241517

7009794: misleading text in SSLHandshakeException exception message Summary: update the warning message Reviewed-by: weijun
author xuelei
date Mon, 14 Mar 2011 09:05:06 -0700
parents d901560d70a7
children b708c576f201 5c978a922711
files src/share/classes/sun/security/ssl/ClientHandshaker.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/security/ssl/ClientHandshaker.java	Sun Mar 13 17:09:55 2011 +0800
+++ b/src/share/classes/sun/security/ssl/ClientHandshaker.java	Mon Mar 14 09:05:06 2011 -0700
@@ -377,8 +377,8 @@
         ProtocolVersion mesgVersion = mesg.protocolVersion;
         if (!isNegotiable(mesgVersion)) {
             throw new SSLHandshakeException(
-                    "Server chose unsupported or disabled protocol: " +
-                    mesgVersion);
+                "Server chose " + mesgVersion +
+                ", but client does not support or disables " + mesgVersion);
         }
 
         handshakeHash.protocolDetermined(mesgVersion);