Withdrawn: 8259572: [test] Fix SSL tests after JDK-8237578 to properly handle SocketExceptions

Volker Simonis simonis at openjdk.java.net
Mon Jan 11 19:00:06 UTC 2021


On Mon, 11 Jan 2021 17:24:23 GMT, Volker Simonis <simonis at openjdk.org> wrote:

> 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.
>          }

This pull request has been closed without being integrated.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2029


More information about the security-dev mailing list