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

javadoc of Socket.getLocalPort should use "bound" instead of "connected"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-libs
    • None
    • beta2
    • generic
    • generic

      The javadoc of Socket.getLocalPort currently reads:

          /**
           * Returns the local port to which this socket is bound.
           *
           * @return the local port number to which this socket is connected or -1
           * if the socket is not bound yet.
           */
          public int getLocalPort()

      -> In the @return statement, "connected" should be changed to "bound".

            jccollet Jean-Christophe Collet (Inactive)
            jlueheorcl Jan Luehe (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: