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

Throw UncheckedIOException in place of InternalError when HttpClient fails due to unavailability of underlying resources required by SSLContext

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b12

      Description

      SSLContext.getDefault() can throw NoSuchAlgorithmException for various reasons, If that happens, creation of the HttpClient will fail and an InternalError will be relayed to the user.

      The HttpClient.Builder should probably throw an UncheckedIOException in this case.

        Attachments

          Activity

            People

            Assignee:
            ryadav Rahul Yadav
            Reporter:
            ryadav Rahul Yadav
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: