Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-1281

ProxyAddress and UUID don't compareTo()

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.12
    • Fix Version/s: 2.12
    • Labels:
      None

      Description

      When we present global views in RELAY, we mix local (UUID) and global (ProxyAddress) addresses. This works fine as both classes implement Address.
      However, when we sort them, there's a ClassCastException, because UUID.compareTo(ProxyAddress) fails. ProxyAddress.compareTo(UUID) works.

      ProxyAddressTest is the unit test for this.

      SOLUTION: add code in UUID.compare() that compares to a ProxyAddress

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                belaban Bela Ban
                Reporter:
                belaban Bela Ban
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: