From 31942cda2c9615df23cca95ad9396542dae7e888 Mon Sep 17 00:00:00 2001 From: Xue-Lei Andrew Fan Date: Mon, 14 Mar 2011 09:05:06 -0700 Subject: [PATCH] 7009794: misleading text in SSLHandshakeException exception message Update the warning message Reviewed-by: weijun --- jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java b/jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java index 3920b35c37a..5fa8e0279d9 100644 --- a/jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java +++ b/jdk/src/share/classes/sun/security/ssl/ClientHandshaker.java @@ -377,8 +377,8 @@ final class ClientHandshaker extends Handshaker { 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);