Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8259572

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • None
    • security-libs

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

            simonis Volker Simonis
            simonis Volker Simonis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: