JGroups
  1. JGroups
  2. JGRP-1281

ProxyAddress and UUID don't compareTo()

    Details

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

      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
          Bela Ban added a comment -

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

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development