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

          Activity

          Hide
          belaban Bela Ban added a comment -

          ProxyAddress was removed as it's not needed by RELAY any longer

          Show
          belaban Bela Ban added a comment - ProxyAddress was removed as it's not needed by RELAY any longer

            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:

                Development