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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • None
    • core-libs
    • b24

        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));

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

                Created:
                Updated:
                Resolved: