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

(test) rmi test NonLocalSkeleton fails if network has multiple adapters with the same address

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b24

      Backports

        Description

        The coding of java.rmi.registry.nonLocalRegistry.NonLocalSkeletonTest assumes InetAddress.getAllByName(host) returns a unique set of IP addresses. It does not.

        Line 88 creates an immutable Set from the array of IP addresses
        and throws an exception when they are not unique.

        Set<InetAddress> myAddrs = Set.of(InetAddress.getAllByName(myHostName));

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                rriggs Roger Riggs
                Reporter:
                rriggs Roger Riggs
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: