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

Several methods in java.net.Socket and ServerSocket do not specify behavior when already bound, connected or closed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • core-libs
    • None
    • b08

      The implementations of the following methods currently throw an IOException but these methods currently don't specify it:

      - Socket.connect methods throw IOException if already connected or closed
      - Socket.bind throws an IOException when already closed
      - ServerSocket.accept method throws an IOException if the ServerSocket isn't bound or is already closed
      - ServerSocket.bind methods throw an IOException when it's already closed


            jpai Jaikiran Pai
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: