Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-2347

DefaultClientTlsStrategy.java calls method only available in Java 9

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 5.3.1
    • None
    • HttpClient (async)
    • None

    Description

      This is the link to the line of code
      https://github.com/apache/httpcomponents-client/blob/2e46b62ffd8c0e00ac7438c6c81b9ac6ec445149/httpclient5/src/main/java/org/apache/hc/client5/http/ssl/DefaultClientTlsStrategy.java#L155

      If you look at the source code for javax.net.ssl.SSLParameters, the setApplicationProtocols is not available in Java 8, and it specifically says "@since 9", and this is causing a NoSuchMethodError on Android.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slisaasquatch Siqi Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: