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

Socket.connect throws SocketException instead of specific IAE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • rc1
    • generic
    • generic
    • Verified


      Socket.connect is specified to throw an IllegalArgumentException if the
      argument is a SocketAddress subtype not supported by the socket but the
      implementation throws SocketException.

      The same issue arises with ServerSocket.bind and probably other methods.

            jccollet Jean-Christophe Collet (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: