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

ProxyAddress and UUID don't compareTo()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.12
    • 2.12
    • None

      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

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: