7009794: misleading text in SSLHandshakeException exception message
Summary: update the warning message
Reviewed-by: weijun
--- 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);