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

SocksSocketImpl should handle the IllegalArgumentException thrown by ProxySelector.select usage

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 14
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13

      Description

      As noted in CSR JDK-8230044, the ProxySelector.select method's API expectations have been updated to have it throw an IllegalArgumentException when the host or protocol cannot be determined from the URI that's passed to it.

      The patch contributed as part of JDK-8177648 took care of this usage in certain places like the sun/net/www/protocol/http/HttpURLConnection.java and the sun/net/www/protocol/ftp/FtpURLConnection.java. It was decided to update the rest of the usages separately, on a case by case basis.

      java.net.SocksSocketImpl is one such place where such an update seems relevant.

        Attachments

          Activity

            People

            Assignee:
            jpai Jaikiran Pai
            Reporter:
            jpai Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: