--- old/test/sun/security/ssl/ClientHandshaker/LengthCheckTest.java Fri May 29 00:49:40 2015 +++ new/test/sun/security/ssl/ClientHandshaker/LengthCheckTest.java Fri May 29 00:49:40 2015 @@ -232,7 +232,7 @@ // sent back to the server. if (gotException == false || !isTlsMessage(cTOs, TLS_RECTYPE_ALERT, TLS_ALERT_LVL_FATAL, - TLS_ALERT_INTERNAL_ERROR)) { + TLS_ALERT_UNEXPECTED_MSG)) { throw new SSLException( "Client failed to throw Alert:fatal:internal_error"); } @@ -284,7 +284,7 @@ // sent back to the client. if (gotException == false || !isTlsMessage(sTOc, TLS_RECTYPE_ALERT, TLS_ALERT_LVL_FATAL, - TLS_ALERT_INTERNAL_ERROR)) { + TLS_ALERT_UNEXPECTED_MSG)) { throw new SSLException( "Server failed to throw Alert:fatal:internal_error"); }