7009794: misleading text in SSLHandshakeException exception message
authorxuelei
Mon, 14 Mar 2011 09:05:06 -0700
changeset 8782 1ff0b643b793
parent 8781 1ecbd60a9024
child 8783 2ea9207f2fad
child 8784 29a6801dcf6f
7009794: misleading text in SSLHandshakeException exception message Summary: update the warning message Reviewed-by: weijun
jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java
--- a/jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java	Sun Mar 13 17:09:55 2011 +0800
+++ b/jdk/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);