# HG changeset patch # User xuelei # Date 1526834736 25200 # Node ID c31233a71bd9bf50915ed7fd997fe5e38bb01c62 # Parent 4a53dd94403e0d8cb702d814e99987fddbfa77be The expected exception may be not thrown in order diff -r 4a53dd94403e -r c31233a71bd9 test/jdk/javax/net/ssl/ciphersuites/ECCurvesconstraints.java --- a/test/jdk/javax/net/ssl/ciphersuites/ECCurvesconstraints.java Fri May 18 19:07:49 2018 -0700 +++ b/test/jdk/javax/net/ssl/ciphersuites/ECCurvesconstraints.java Sun May 20 09:45:36 2018 -0700 @@ -40,6 +40,7 @@ import java.io.ByteArrayInputStream; import java.io.InputStream; import java.io.OutputStream; +import java.io.IOException; import java.security.KeyStore; import java.security.KeyFactory; import java.security.cert.Certificate; @@ -49,7 +50,6 @@ import java.util.Base64; import javax.net.ssl.KeyManagerFactory; import javax.net.ssl.SSLContext; -import javax.net.ssl.SSLHandshakeException; import javax.net.ssl.SSLServerSocket; import javax.net.ssl.SSLServerSocketFactory; import javax.net.ssl.SSLSocket; @@ -141,7 +141,7 @@ sslOS.flush(); throw new Exception("EC curve secp224k1 should be disabled"); - } catch (SSLHandshakeException she) { + } catch (IOException she) { // expected exception: no cipher suites in common System.out.println("Expected exception: " + she); } finally { @@ -183,7 +183,7 @@ sslIS.read(); throw new Exception("EC curve secp224k1 should be disabled"); - } catch (SSLHandshakeException she) { + } catch (IOException she) { // expected exception: Received fatal alert System.out.println("Expected exception: " + she); } finally {