sun/security/ssl/AppOutputStream/NoExceptionOnClose.java changes the expected exception JDK-8145252-TLS13-branch
authorjjiang
Mon, 21 May 2018 15:40:25 +0800
branchJDK-8145252-TLS13-branch
changeset 56579 fb93f16d20fa
parent 56575 c31233a71bd9
child 56583 c06b74455ccc
child 56584 a0f3377c58c7
sun/security/ssl/AppOutputStream/NoExceptionOnClose.java changes the expected exception
test/jdk/sun/security/ssl/AppOutputStream/NoExceptionOnClose.java
--- a/test/jdk/sun/security/ssl/AppOutputStream/NoExceptionOnClose.java	Sun May 20 09:45:36 2018 -0700
+++ b/test/jdk/sun/security/ssl/AppOutputStream/NoExceptionOnClose.java	Mon May 21 15:40:25 2018 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -152,11 +152,11 @@
         try {
             sslOS.write(22);
             sslOS.flush();
-        } catch (SocketException socketClosed) {
+        } catch (SSLException socketClosed) {
                 System.out.println("Received \"" + socketClosed.getMessage()
                         + "\" exception as expected");
                 isSocketClosedThrown = true;
-          }
+        }
         if (!isSocketClosedThrown) {
                 throw new Exception("No Exception thrown on write() after"
                                 + " close()");