JDK-8237578 exposes some SocketExceptions directly which were previously wrapped inside an SSLException. The change updated one test to take this new behaviour into account (i.e. TrustTrustedCert.java) but apparently missed other tests.
The fix for the other tests is similar like the fix for TrustTrustedCert.java in JDK-8237578: - } catch (SSLException ssle) { + } catch (SSLException | SocketException se) { if (!expectFail) { - throw ssle; + throw se; } // Otherwise, ignore. } ------------- Commit messages: - 8259572: [test] Fix SSL tests after JDK-8237578 to properly handle SocketExceptions Changes: https://git.openjdk.java.net/jdk/pull/2029/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2029&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8259572 Stats: 6 lines in 2 files changed: 2 ins; 0 del; 4 mod Patch: https://git.openjdk.java.net/jdk/pull/2029.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/2029/head:pull/2029 PR: https://git.openjdk.java.net/jdk/pull/2029