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

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

XMLWordPrintable

    • b12
    • generic
    • generic
    • Not verified

        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

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

              xuelei Xuelei Fan
              kuzsunw Kuz Kuz (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: