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

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 17
    • core-libs
    • None
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: