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

InetAddress will not randomize multiple IP addresses.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.0
    • 1.1.2
    • core-libs
    • 1.2beta4
    • x86
    • windows_nt
    • Not verified



      Name: rlT66838 Date: 08/08/97


      Suppose a host has multiple addresses associated with the same host name. InetAddress.getByName() will always
      return the same address for the same host even if multiple addresses are available.

      This is due to always returning the [0] element of the host address array. This works fine the first time getByName()
      is called, but creates a problem when getByName() is called again.


      ======================================================================

            brenaudsunw Benjamin Renaud (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: