From b0246ef1ae68f6210d950ad8890d0f685cc3da4e Mon Sep 17 00:00:00 2001 From: Xue-Lei Andrew Fan Date: Thu, 20 Jun 2013 07:48:49 -0700 Subject: [PATCH] 8017157: catch more exception in test RejectClientRenego Reviewed-by: vinnie --- .../ssl/internal/ssl/SSLSocketImpl/RejectClientRenego.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/SSLSocketImpl/RejectClientRenego.java b/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/SSLSocketImpl/RejectClientRenego.java index 65f6f6f1c66..29f80d9e15b 100644 --- a/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/SSLSocketImpl/RejectClientRenego.java +++ b/jdk/test/sun/security/ssl/com/sun/net/ssl/internal/ssl/SSLSocketImpl/RejectClientRenego.java @@ -131,7 +131,7 @@ public class RejectClientRenego implements sslOS.flush(); } throw new Exception("Not reject client initialized renegotiation"); - } catch (SSLHandshakeException she) { + } catch (IOException ioe) { System.out.println("Got the expected exception"); } finally { sslSocket.close(); @@ -181,7 +181,7 @@ public class RejectClientRenego implements sslIS.read(); } throw new Exception("Not reject client initialized renegotiation"); - } catch (SSLHandshakeException she) { + } catch (IOException ioe) { System.out.println("Got the expected exception"); } finally { sslSocket.close();