com/sun/jndi/ldap/DeadSSLLdapTimeoutTest.java adapts to new exception hierarchy JDK-8145252-TLS13-branch
authorjjiang
Tue, 22 May 2018 20:36:31 +0800
branchJDK-8145252-TLS13-branch
changeset 56588 a725ee6ccaea
parent 56587 ca406858595e
child 56590 8c3ea606198d
child 56592 b1902b22005e
com/sun/jndi/ldap/DeadSSLLdapTimeoutTest.java adapts to new exception hierarchy
test/jdk/com/sun/jndi/ldap/DeadSSLLdapTimeoutTest.java
--- a/test/jdk/com/sun/jndi/ldap/DeadSSLLdapTimeoutTest.java	Tue May 22 17:53:35 2018 +0800
+++ b/test/jdk/com/sun/jndi/ldap/DeadSSLLdapTimeoutTest.java	Tue May 22 20:36:31 2018 +0800
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 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
@@ -67,7 +67,7 @@
     public void performOp(InitialContext ctx) throws NamingException {}
 
     public void handleNamingException(NamingException e, long start, long end) {
-        if (e.getCause() instanceof SocketTimeoutException) {
+        if (e.getCause().getCause() instanceof SocketTimeoutException) {
             // SSL connect will timeout via readReply using
             // SocketTimeoutException
             e.printStackTrace();