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

(spec) Unspecified behavior of SSLSocketFactory.createSocket() and SSLSocket constructors

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b12
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        Name: bkR10012 Date: 06/01/2004


        The description of the SSLSocketFactory.createSocket(Socket s,
                                                             String host,
                                                             int port,
                                                             boolean autoClose)
        says:
        "Throws:
            IOException - if an I/O error occurs when creating the socket
            UnknownHostException - if the host is not known"

        But the implementation
        - does not throw UnknownHostException if the host is not known
         (e.g. host="incorrect host name") or null
        - does not throw IOException if the port is negative
        - throws unspecified NullPointerException if parameter s is null

        ======================================================================

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                xuelei Xue-Lei Fan
                Reporter:
                kuzsunw Kuz Kuz (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: