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

(doc) java.net.DatagramSocket: special meaning of port value 0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 6, 8, 9
    • core-libs
    • generic
    • generic

      DatagramSocket( int port ) & DatagramSocket( int port, InetAddress ) constructors documentation doesn't contain information about port parameter special value 0.
      (As far as I know, if a user pass 0 as port parameter, socket is binded to any available port)
      The same problem exists in java.net.Socket class description.

            Unassigned Unassigned
            itseytin Igor Tseytin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: