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

Unspecified SSLSocket constructors behavior

XMLWordPrintable



      Name: aiR10266 Date: 06/19/2004


      The description of the SSLSocket constructors states that only IOException may be
      thrown if an I/O error occurs when creating the socket or UnknownHostException may
      be thrown if the host is not known.

      But the implementation throws 'IllegalArgumentException: Port value out of range'
      if port value is invalid (e.g. negative), and NullPointerException if the address
      value is null.


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

            xuelei Xuelei Fan
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: