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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: 24
    • Component/s: 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


            Assignee:
            Jaikiran Pai
            Reporter:
            Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: