From d2ce08a27aab1933a7423e6f268119233ad9ee9c Mon Sep 17 00:00:00 2001 From: Sean Coffey Date: Fri, 17 Jul 2015 10:37:25 +0100 Subject: [PATCH] 8131665: Bad exception message in HandshakeHash.getFinishedHash Reviewed-by: xuelei --- .../java.base/share/classes/sun/security/ssl/HandshakeHash.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/src/java.base/share/classes/sun/security/ssl/HandshakeHash.java b/jdk/src/java.base/share/classes/sun/security/ssl/HandshakeHash.java index a8f6ac6cb8d..4a32fdf902e 100644 --- a/jdk/src/java.base/share/classes/sun/security/ssl/HandshakeHash.java +++ b/jdk/src/java.base/share/classes/sun/security/ssl/HandshakeHash.java @@ -355,7 +355,7 @@ final class HandshakeHash { try { return cloneDigest(finMD).digest(); } catch (Exception e) { - throw new Error("BAD"); + throw new Error("Error during hash calculation", e); } } }